mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-11 00:54:28 +05:00
Update http.py
This commit is contained in:
@@ -110,7 +110,7 @@ class MegaView(HomeAssistantView):
|
||||
return Response(status=200)
|
||||
for e, v in data.items():
|
||||
if e.startswith('ext') in data:
|
||||
idx = e[-1]
|
||||
idx = e[3:]
|
||||
pt = f'{pt_orig}e{idx}'
|
||||
data['pt_orig'] = pt_orig
|
||||
data['value'] = 'ON' if v == '1' else 'OFF'
|
||||
|
||||
Reference in New Issue
Block a user