Skip to content

Commit

Permalink
refactor: bump requirements version number (v0.0.22 -> v0.0.23) (#25)
Browse files Browse the repository at this point in the history
refactor: transition from semantic to dated versions

chore: bump version number (v0.2.1 -> v2022.05.02)
  • Loading branch information
alryaz committed May 17, 2022
1 parent d808967 commit f9a25ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
18 changes: 6 additions & 12 deletions custom_components/lkcomu_interrao/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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")
Expand All @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions custom_components/lkcomu_interrao/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f9a25ea

Please sign in to comment.