mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-10 16:44:28 +05:00
fix 1wire bus
This commit is contained in:
@@ -486,9 +486,9 @@ class MegaD:
|
|||||||
http_cmd = 'list'
|
http_cmd = 'list'
|
||||||
else:
|
else:
|
||||||
values = await self.get_port(port, force_http=True)
|
values = await self.get_port(port, force_http=True)
|
||||||
if values is None or (isinstance(values, dict) and str(values.get('value')) in ('', 'None')):
|
if values is None or (isinstance(values, dict) and str(values.get('value')) in ('', 'None')):
|
||||||
values = await self.get_port(port, force_http=True, http_cmd='list')
|
values = await self.get_port(port, force_http=True, http_cmd='list')
|
||||||
http_cmd = 'list'
|
http_cmd = 'list'
|
||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
self.lg.warning(f'timout on port {port}')
|
self.lg.warning(f'timout on port {port}')
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user