From a78a87662be40a369278f18d52225025dd615a41 Mon Sep 17 00:00:00 2001 From: Andrey Date: Wed, 25 Aug 2021 18:39:15 +0300 Subject: [PATCH] fix #54 --- custom_components/mega/http.py | 2 +- custom_components/mega/manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/mega/http.py b/custom_components/mega/http.py index 072cb10..e462703 100644 --- a/custom_components/mega/http.py +++ b/custom_components/mega/http.py @@ -117,7 +117,7 @@ class MegaView(HomeAssistantView): _data = data.copy() if e.startswith('ext'): idx = e[3:] - pt = f'{pt_orig}e{idx}' + pt = f'{pt_orig}e{idx}' if not hub.new_naming else f'{pt_orig:02}e{idx:02}' _data['pt_orig'] = pt_orig _data['value'] = 'ON' if v == '1' else 'OFF' _data['m'] = 1 if _data[e] == '0' else 0 # имитация поведения обычного входа, чтобы события обрабатывались аналогично diff --git a/custom_components/mega/manifest.json b/custom_components/mega/manifest.json index e5721f6..bee7ebc 100644 --- a/custom_components/mega/manifest.json +++ b/custom_components/mega/manifest.json @@ -15,5 +15,5 @@ "@andvikt" ], "issue_tracker": "https://github.com/andvikt/mega_hacs/issues", - "version": "v1.0.8" + "version": "v1.0.9b1" } \ No newline at end of file