From ec68ccbe461a51a5e07c86f5cf38846f2bb77d22 Mon Sep 17 00:00:00 2001 From: dckiller51 <53062806+dckiller51@users.noreply.github.com> Date: Mon, 3 May 2021 13:53:42 +0200 Subject: [PATCH] v0.0.5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rename HomeAssistantType —> HomeAssistant for integrations n* - p* #49559 --- README.md | 3 +++ custom_components/bodymiscale/const.py | 2 +- custom_components/bodymiscale/group.py | 5 ++--- custom_components/bodymiscale/manifest.json | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 15e2860..1000a50 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,9 @@ aurelien: **VERSION** +**0.0.5** +- Rename HomeAssistantType —> HomeAssistant for integrations n* - p* #49559 + **0.0.4** - Fixed a startup error. - Update Readme by @Ernst79 (Thanks) diff --git a/custom_components/bodymiscale/const.py b/custom_components/bodymiscale/const.py index dd835a8..fa2b295 100644 --- a/custom_components/bodymiscale/const.py +++ b/custom_components/bodymiscale/const.py @@ -2,7 +2,7 @@ # Base component constants NAME = "Body Xiaomi Miscale Esphome" DOMAIN = "bodymiscale" -VERSION = "0.0.4" +VERSION = "0.0.5" ISSUE_URL = "https://github.com/dckiller51/bodymiscale/issues" DOC_URL = "https://github.com/dckiller51/bodymiscale" diff --git a/custom_components/bodymiscale/group.py b/custom_components/bodymiscale/group.py index a3910cb..8ae5322 100644 --- a/custom_components/bodymiscale/group.py +++ b/custom_components/bodymiscale/group.py @@ -3,13 +3,12 @@ from homeassistant.components.group import GroupIntegrationRegistry from homeassistant.const import STATE_OK, STATE_PROBLEM -from homeassistant.core import callback -from homeassistant.helpers.typing import HomeAssistantType +from homeassistant.core import HomeAssistant, callback @callback def async_describe_on_off_states( - hass: HomeAssistantType, registry: GroupIntegrationRegistry + hass: HomeAssistant, registry: GroupIntegrationRegistry ) -> None: """Describe group on off states.""" registry.on_off_states({STATE_PROBLEM}, STATE_OK) \ No newline at end of file diff --git a/custom_components/bodymiscale/manifest.json b/custom_components/bodymiscale/manifest.json index ef34717..8fc65a2 100644 --- a/custom_components/bodymiscale/manifest.json +++ b/custom_components/bodymiscale/manifest.json @@ -4,5 +4,5 @@ "documentation": [], "after_dependencies": [], "codeowners": ["dckiller51"], - "version": "0.0.4" + "version": "0.0.5" }