From 0adba7fc0f750807f4a78db6082a8b900e378705 Mon Sep 17 00:00:00 2001 From: Andrey Date: Mon, 15 Feb 2021 21:50:49 +0300 Subject: [PATCH] add http v parsing --- custom_components/mega/http.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custom_components/mega/http.py b/custom_components/mega/http.py index 36103df..83757a7 100644 --- a/custom_components/mega/http.py +++ b/custom_components/mega/http.py @@ -61,6 +61,8 @@ class MegaView(HomeAssistantView): make_ints(data) port = data.get('pt') data = data.copy() + if 'v' in data: + data['value'] = data.pop('v') data['mega_id'] = hub.id ret = 'd' if port is not None: