From a8274f7fd144aa1296f690437688e6db5ea422ff Mon Sep 17 00:00:00 2001 From: Matthieu Date: Thu, 21 May 2020 20:40:19 +0200 Subject: [PATCH] Update to prepare new home assisntant version (0.111) --- custom_components/georide/manifest.json | 4 ++-- custom_components/georide/sensor.py | 4 ++-- custom_components/georide/switch.py | 4 ++-- .../georide/{.translations => translations}/en.json | 0 .../georide/{.translations => translations}/fr.json | 0 hacs.json | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) rename custom_components/georide/{.translations => translations}/en.json (100%) rename custom_components/georide/{.translations => translations}/fr.json (100%) diff --git a/custom_components/georide/manifest.json b/custom_components/georide/manifest.json index 635646b..14aa2b5 100644 --- a/custom_components/georide/manifest.json +++ b/custom_components/georide/manifest.json @@ -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"] } \ No newline at end of file diff --git a/custom_components/georide/sensor.py b/custom_components/georide/sensor.py index aa3d4ed..7a8fd82 100644 --- a/custom_components/georide/sensor.py +++ b/custom_components/georide/sensor.py @@ -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): diff --git a/custom_components/georide/switch.py b/custom_components/georide/switch.py index 5c3d881..9c8880d 100644 --- a/custom_components/georide/switch.py +++ b/custom_components/georide/switch.py @@ -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): diff --git a/custom_components/georide/.translations/en.json b/custom_components/georide/translations/en.json similarity index 100% rename from custom_components/georide/.translations/en.json rename to custom_components/georide/translations/en.json diff --git a/custom_components/georide/.translations/fr.json b/custom_components/georide/translations/fr.json similarity index 100% rename from custom_components/georide/.translations/fr.json rename to custom_components/georide/translations/fr.json diff --git a/hacs.json b/hacs.json index 24fd578..2bf156d 100644 --- a/hacs.json +++ b/hacs.json @@ -4,5 +4,5 @@ "render_readme": true, "domains": ["devices_tracker", "sensor"], "country": ["FR"], - "homeassistant": "0.100.0" + "homeassistant": "0.110.0" } \ No newline at end of file