mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-12 01:24:29 +05:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1db5670cfd | ||
|
|
74b6e200a5 | ||
|
|
3737bf91a3 | ||
|
|
747b8e6c36 | ||
|
|
fec5cef05c |
21
.bumpversion.cfg
Normal file
21
.bumpversion.cfg
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
[bumpversion]
|
||||||
|
current_version = 1.0.10b0
|
||||||
|
parse = (?P<major>\d+)(\.(?P<minor>\d+))(\.(?P<patch>\d))(?P<release>[bf]*)(?P<build>\d*)
|
||||||
|
commit = True
|
||||||
|
tag = True
|
||||||
|
serialize =
|
||||||
|
{major}.{minor}.{patch}{release}{build}
|
||||||
|
{major}.{minor}.{patch}
|
||||||
|
|
||||||
|
[bumpversion:part:release]
|
||||||
|
optional_value = f
|
||||||
|
values =
|
||||||
|
b
|
||||||
|
f
|
||||||
|
|
||||||
|
[bumpversion:part:build]
|
||||||
|
first_value = 0
|
||||||
|
|
||||||
|
[bumpversion:file:custom_components/mega/manifest.json]
|
||||||
|
search = "version": "v{current_version}"
|
||||||
|
replace = "version": "v{new_version}"
|
||||||
@@ -210,7 +210,7 @@ async def async_remove_entry(hass: HomeAssistant, entry: ConfigEntry) -> None:
|
|||||||
id = entry.data.get('id', entry.entry_id)
|
id = entry.data.get('id', entry.entry_id)
|
||||||
hub: MegaD = hass.data[DOMAIN].get(id)
|
hub: MegaD = hass.data[DOMAIN].get(id)
|
||||||
if hub is None:
|
if hub is None:
|
||||||
return
|
return True
|
||||||
_LOGGER.debug(f'remove {id}')
|
_LOGGER.debug(f'remove {id}')
|
||||||
_hubs.pop(id, None)
|
_hubs.pop(id, None)
|
||||||
hass.data[DOMAIN].pop(id, None)
|
hass.data[DOMAIN].pop(id, None)
|
||||||
@@ -221,7 +221,7 @@ async def async_remove_entry(hass: HomeAssistant, entry: ConfigEntry) -> None:
|
|||||||
if task is not None:
|
if task is not None:
|
||||||
task.cancel()
|
task.cancel()
|
||||||
if hub is None:
|
if hub is None:
|
||||||
return
|
return True
|
||||||
await hub.stop()
|
await hub.stop()
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
@@ -15,5 +15,5 @@
|
|||||||
"@andvikt"
|
"@andvikt"
|
||||||
],
|
],
|
||||||
"issue_tracker": "https://github.com/andvikt/mega_hacs/issues",
|
"issue_tracker": "https://github.com/andvikt/mega_hacs/issues",
|
||||||
"version": "v1.0.9"
|
"version": "v1.0.10b0"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user