Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9b651f933e | |||
| a8274f7fd1 |
@@ -2,11 +2,11 @@
|
|||||||
"domain": "georide",
|
"domain": "georide",
|
||||||
"name": "Georide",
|
"name": "Georide",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://git.tontontux.fr/mduval/GeorideHA",
|
"documentation": "https://github.com/ptimatth/GeorideHA",
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"georideapilib>=0.4.4",
|
"georideapilib>=0.4.4",
|
||||||
"pyjwt>=1.7.1"
|
"pyjwt>=1.7.1"
|
||||||
],
|
],
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
"codeowners": ["@ptimatth"]
|
"codeowners": ["ptimatth"]
|
||||||
}
|
}
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from homeassistant.core import callback
|
from homeassistant.core import callback
|
||||||
from homeassistant.components.switch import SwitchDevice
|
from homeassistant.components.switch import SwitchEntity
|
||||||
from homeassistant.components.switch import ENTITY_ID_FORMAT
|
from homeassistant.components.switch import ENTITY_ID_FORMAT
|
||||||
|
|
||||||
import georideapilib.api as GeorideApi
|
import georideapilib.api as GeorideApi
|
||||||
@@ -34,7 +34,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities): # pylint: d
|
|||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
class GeorideOdometerSensorEntity(SwitchDevice):
|
class GeorideOdometerSensorEntity(SwitchEntity):
|
||||||
"""Represent a tracked device."""
|
"""Represent a tracked device."""
|
||||||
|
|
||||||
def __init__(self, tracker_id, get_token_callback, get_tracker_callback, data):
|
def __init__(self, tracker_id, get_token_callback, get_tracker_callback, data):
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from homeassistant.core import callback
|
from homeassistant.core import callback
|
||||||
from homeassistant.components.switch import SwitchDevice
|
from homeassistant.components.switch import SwitchEntity
|
||||||
from homeassistant.components.switch import ENTITY_ID_FORMAT
|
from homeassistant.components.switch import ENTITY_ID_FORMAT
|
||||||
|
|
||||||
import georideapilib.api as GeorideApi
|
import georideapilib.api as GeorideApi
|
||||||
@@ -38,7 +38,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities): # pylint: d
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
class GeorideLockSwitchEntity(SwitchDevice):
|
class GeorideLockSwitchEntity(SwitchEntity):
|
||||||
"""Represent a tracked device."""
|
"""Represent a tracked device."""
|
||||||
|
|
||||||
def __init__(self, tracker_id, get_token_callback, get_tracker_callback, data):
|
def __init__(self, tracker_id, get_token_callback, get_tracker_callback, data):
|
||||||
|
|||||||
Reference in New Issue
Block a user