Compare commits

..

2 Commits

Author SHA1 Message Date
andvikt
c48a3632d2 Update http.py 2021-02-28 13:04:00 +03:00
Andrey
e06ba65ead fix errors 2021-02-28 09:49:16 +03:00
2 changed files with 2 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ async def validate_input(hass: core.HomeAssistant, data):
class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for mega."""
VERSION = 13
VERSION = 14
CONNECTION_CLASS = config_entries.CONN_CLASS_ASSUMED
async def async_step_user(self, user_input=None):

View File

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