mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-13 18:14:28 +05:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bd8b07dd90 | ||
|
|
d9b6ba3a50 |
@@ -63,7 +63,7 @@ async def validate_input(hass: core.HomeAssistant, data):
|
|||||||
class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
||||||
"""Handle a config flow for mega."""
|
"""Handle a config flow for mega."""
|
||||||
|
|
||||||
VERSION = 16
|
VERSION = 17
|
||||||
CONNECTION_CLASS = config_entries.CONN_CLASS_ASSUMED
|
CONNECTION_CLASS = config_entries.CONN_CLASS_ASSUMED
|
||||||
|
|
||||||
async def async_step_user(self, user_input=None):
|
async def async_step_user(self, user_input=None):
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ class MegaView(HomeAssistantView):
|
|||||||
if port in hub.extenders:
|
if port in hub.extenders:
|
||||||
pt_orig = port
|
pt_orig = port
|
||||||
else:
|
else:
|
||||||
pt_orig = hub.ext_in.get(port)
|
pt_orig = hub.ext_in.get(port, hub.ext_in.get(str(port)))
|
||||||
if pt_orig is None:
|
if pt_orig is None:
|
||||||
hub.lg.warning(f'can not find extender for int port {port}, '
|
hub.lg.warning(f'can not find extender for int port {port}, '
|
||||||
f'have ext_int: {hub.ext_in}, ext: {hub.extenders}')
|
f'have ext_int: {hub.ext_in}, ext: {hub.extenders}')
|
||||||
|
|||||||
Reference in New Issue
Block a user