From 003a093a2f3c7284637763e312119443a7f8a435 Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Sun, 27 Mar 2022 14:19:11 +0200 Subject: [PATCH 1/3] Fix token retrieval instructions (Closes: #23) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5b3f4e0..d59d337 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ This is a custom component for home assistant to faciliate the reverse engeneering of Xiaomi MiIO devices. -Please follow the instructions on [Retrieving the Access Token](https://home-assistant.io/components/xiaomi/#retrieving-the-access-token) to get the API token to use in the configuration.yaml file. +Please follow the instructions on [Retrieving the Access Token](https://www.home-assistant.io/integrations/xiaomi_miio/#xiaomi-cloud-tokens-extractor) to get the API token to use in the configuration.yaml file. Credits: Thanks to [Rytilahti](https://github.com/rytilahti/python-miio) for all the work. From b4269a330100ae10e8d62dad5b87978508f5fa2c Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Thu, 2 Jun 2022 07:44:38 +0200 Subject: [PATCH 2/3] Remove iot class --- hacs.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hacs.json b/hacs.json index 8b92e78..cced0be 100644 --- a/hacs.json +++ b/hacs.json @@ -1,6 +1,5 @@ { "name": "Xiaomi MiIO Raw", "content_in_root": false, - "render_readme": true, - "iot_class": "local_polling" + "render_readme": true } From cba4c3a354a77ad64a0999ad329d3c1d0f66ae62 Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Wed, 10 Aug 2022 18:58:06 +0200 Subject: [PATCH 3/3] Bump python-miio and component version (#24) --- custom_components/xiaomi_miio_raw/manifest.json | 4 ++-- custom_components/xiaomi_miio_raw/sensor.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/xiaomi_miio_raw/manifest.json b/custom_components/xiaomi_miio_raw/manifest.json index 6aba3ea..9de5b2b 100644 --- a/custom_components/xiaomi_miio_raw/manifest.json +++ b/custom_components/xiaomi_miio_raw/manifest.json @@ -1,14 +1,14 @@ { "domain": "xiaomi_miio_raw", "name": "Custom component for Home Assistant to faciliate the reverse engeneering of Xiaomi MiIO devices", - "version": "2022.3.3.0", + "version": "2022.8.0.0", "iot_class": "local_polling", "config_flow": false, "documentation": "https://github.com/syssi/xiaomi_raw", "issue_tracker": "https://github.com/syssi/xiaomi_raw/issues", "requirements": [ "construct==2.10.56", - "python-miio>=0.5.11" + "python-miio>=0.5.12" ], "dependencies": [], "codeowners": [ diff --git a/custom_components/xiaomi_miio_raw/sensor.py b/custom_components/xiaomi_miio_raw/sensor.py index b839dfd..9e5285e 100644 --- a/custom_components/xiaomi_miio_raw/sensor.py +++ b/custom_components/xiaomi_miio_raw/sensor.py @@ -9,7 +9,7 @@ from homeassistant.const import ATTR_ENTITY_ID, CONF_HOST, CONF_NAME, CONF_TOKEN from homeassistant.exceptions import PlatformNotReady from homeassistant.helpers.entity import Entity -from miio import Device, DeviceException # pylint: disable=import-error +from miio import Device, DeviceException _LOGGER = logging.getLogger(__name__)