Compare commits

...

3 Commits
0.4.2 ... 0.5.0

Author SHA1 Message Date
9b651f933e Shipping v0.5.0 2020-05-23 15:07:27 +02:00
a8274f7fd1 Update to prepare new home assisntant version (0.111) 2020-05-23 15:01:52 +02:00
ef783db79b HotFix deveice_tracker.py du to HA Update 2020-03-28 23:59:38 +01:00
7 changed files with 10 additions and 10 deletions

View File

@@ -2,7 +2,7 @@
import logging
from homeassistant.components.device_tracker.const import ENTITY_ID_FORMAT, SOURCE_TYPE_GPS
from homeassistant.components.device_tracker.const import DOMAIN, SOURCE_TYPE_GPS
from homeassistant.components.device_tracker.config_entry import TrackerEntity
import georideapilib.api as GeorideApi
@@ -50,7 +50,7 @@ class GeorideTrackerEntity(TrackerEntity):
self._get_tracker_callback = get_tracker_callback
self._name = tracker.tracker_name
self._data = tracker or {}
self.entity_id = ENTITY_ID_FORMAT.format(tracker_id)
self.entity_id = DOMAIN + ".{}".format(tracker_id)
@property
def unique_id(self):

View File

@@ -2,11 +2,11 @@
"domain": "georide",
"name": "Georide",
"config_flow": true,
"documentation": "https://git.tontontux.fr/mduval/GeorideHA",
"documentation": "https://github.com/ptimatth/GeorideHA",
"requirements": [
"georideapilib>=0.4.4",
"pyjwt>=1.7.1"
],
"dependencies": [],
"codeowners": ["@ptimatth"]
"codeowners": ["ptimatth"]
}

View File

@@ -3,7 +3,7 @@
import logging
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
import georideapilib.api as GeorideApi
@@ -34,7 +34,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities): # pylint: d
return True
class GeorideOdometerSensorEntity(SwitchDevice):
class GeorideOdometerSensorEntity(SwitchEntity):
"""Represent a tracked device."""
def __init__(self, tracker_id, get_token_callback, get_tracker_callback, data):

View File

@@ -3,7 +3,7 @@
import logging
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
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."""
def __init__(self, tracker_id, get_token_callback, get_tracker_callback, data):

View File

@@ -4,5 +4,5 @@
"render_readme": true,
"domains": ["devices_tracker", "sensor"],
"country": ["FR"],
"homeassistant": "0.100.0"
"homeassistant": "0.110.0"
}