mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-11 17:14:28 +05:00
fix sw-link
This commit is contained in:
@@ -371,7 +371,7 @@ class MegaD:
|
|||||||
async for port, pty, m in self.scan_ports(nports):
|
async for port, pty, m in self.scan_ports(nports):
|
||||||
if pty == "0":
|
if pty == "0":
|
||||||
ret['binary_sensor'][port].append({})
|
ret['binary_sensor'][port].append({})
|
||||||
elif pty == "1" and m in ['0', '1']:
|
elif pty == "1" and m in ['0', '1', '3']:
|
||||||
ret['light'][port].append({'dimmer': m == '1'})
|
ret['light'][port].append({'dimmer': m == '1'})
|
||||||
elif pty == '3':
|
elif pty == '3':
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user