From f9a25eaa22cfb6c31971bdbf04a461dca6da97cc Mon Sep 17 00:00:00 2001 From: Alexander Ryazanov Date: Tue, 17 May 2022 22:46:09 +0300 Subject: [PATCH] refactor: bump requirements version number (v0.0.22 -> v0.0.23) (#25) refactor: transition from semantic to dated versions chore: bump version number (v0.2.1 -> v2022.05.02) --- custom_components/lkcomu_interrao/__init__.py | 18 ++++++------------ .../lkcomu_interrao/manifest.json | 4 ++-- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/custom_components/lkcomu_interrao/__init__.py b/custom_components/lkcomu_interrao/__init__.py index 3d016bc..adf3c35 100644 --- a/custom_components/lkcomu_interrao/__init__.py +++ b/custom_components/lkcomu_interrao/__init__.py @@ -187,14 +187,6 @@ async def async_setup(hass: HomeAssistantType, config: ConfigType): async def async_setup_entry( hass: HomeAssistantType, config_entry: config_entries.ConfigEntry ) -> bool: - # !!! SETUP TEMPORARILY DISABLED !!! - # !!! SETUP TEMPORARILY DISABLED !!! - # !!! SETUP TEMPORARILY DISABLED !!! - return False; - # !!! SETUP TEMPORARILY DISABLED !!! - # !!! SETUP TEMPORARILY DISABLED !!! - # !!! SETUP TEMPORARILY DISABLED !!! - type_ = config_entry.data[CONF_TYPE] username = config_entry.data[CONF_USERNAME] unique_key = (type_, username) @@ -332,8 +324,8 @@ async def async_setup_entry( f"идентификатор {existing_config_entry_id})" if IS_IN_RUSSIA else f"Same profiles retrieved by multiple configurations " - f"(foreign username: {existing_api_object.username}, " - f"ID: {existing_config_entry_id})" + f"(foreign username: {existing_api_object.username}, " + f"ID: {existing_config_entry_id})" ) ) await hass.config_entries.async_set_disabled_by(config_entry.entry_id, DOMAIN) @@ -365,7 +357,8 @@ async def async_setup_entry( async def async_reload_entry( - hass: HomeAssistantType, config_entry: config_entries.ConfigEntry, + hass: HomeAssistantType, + config_entry: config_entries.ConfigEntry, ) -> bool: """Reload Lkcomu InterRAO entry""" log_prefix = _make_log_prefix(config_entry, "setup") @@ -377,7 +370,8 @@ async def async_reload_entry( async def async_unload_entry( - hass: HomeAssistantType, config_entry: config_entries.ConfigEntry, + hass: HomeAssistantType, + config_entry: config_entries.ConfigEntry, ) -> bool: """Unload Lkcomu InterRAO entry""" log_prefix = _make_log_prefix(config_entry, "setup") diff --git a/custom_components/lkcomu_interrao/manifest.json b/custom_components/lkcomu_interrao/manifest.json index 0063c7a..3ffb170 100644 --- a/custom_components/lkcomu_interrao/manifest.json +++ b/custom_components/lkcomu_interrao/manifest.json @@ -4,12 +4,12 @@ "documentation": "https://github.com/alryaz/hass-lkcomu-interrao", "issue_tracker": "https://github.com/alryaz/hass-lkcomu-interrao/issues", "dependencies": [], - "version": "0.2.1", + "version": "2022.05.02", "codeowners": ["@alryaz"], "requirements": [ "python-dateutil==2.8.1", "fake_useragent==0.1.11", - "inter-rao-energosbyt-python==0.0.22" + "inter-rao-energosbyt-python==0.0.23" ], "config_flow": true, "iot_class": "cloud_polling"