Compare commits

..

5 Commits

Author SHA1 Message Date
andvikt
1db5670cfd fix #57 2021-09-15 13:59:30 +03:00
andvikt
74b6e200a5 add bumb2version 2021-09-15 13:58:22 +03:00
andvikt
3737bf91a3 Bump version: 1.0.9 → 1.0.10b0 2021-09-15 13:56:37 +03:00
andvikt
747b8e6c36 add bumb2version 2021-09-15 13:56:33 +03:00
andvikt
fec5cef05c add bumb2version 2021-09-15 13:54:34 +03:00
4 changed files with 5 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
[bumpversion] [bumpversion]
current_version = 1.0.10b1 current_version = 1.0.10b0
parse = (?P<major>\d+)(\.(?P<minor>\d+))(\.(?P<patch>\d+))(?P<release>[bf]*)(?P<build>\d*) parse = (?P<major>\d+)(\.(?P<minor>\d+))(\.(?P<patch>\d))(?P<release>[bf]*)(?P<build>\d*)
commit = True commit = True
tag = True tag = True
serialize = serialize =

View File

@@ -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

View File

@@ -566,9 +566,6 @@ class MegaD:
elif cfg.pty == '4' and cfg.m == '2': elif cfg.pty == '4' and cfg.m == '2':
# scl исключаем из сканирования # scl исключаем из сканирования
continue continue
elif cfg.pty is None and nports < 30:
# вроде как это ADC на 328 меге
ret['sensor'][port].append(dict())
elif cfg.pty in ('3', '2', '4'): elif cfg.pty in ('3', '2', '4'):
http_cmd = 'get' http_cmd = 'get'
if cfg.d == '5' and cfg.pty == '3': if cfg.d == '5' and cfg.pty == '3':

View File

@@ -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.10b1" "version": "v1.0.10b0"
} }