mirror of
https://github.com/andvikt/mega_hacs.git
synced 2026-11-04 11:08:44 +05:00
add http v parsing
This commit is contained in:
1 parent
39642700ca
commit
0adba7fc0f
1 file changed
+2
@@ -61,6 +61,8 @@ class MegaView(HomeAssistantView):
|
|||||||
make_ints(data)
|
make_ints(data)
|
||||||
port = data.get('pt')
|
port = data.get('pt')
|
||||||
data = data.copy()
|
data = data.copy()
|
||||||
|
if 'v' in data:
|
||||||
|
data['value'] = data.pop('v')
|
||||||
data['mega_id'] = hub.id
|
data['mega_id'] = hub.id
|
||||||
ret = 'd'
|
ret = 'd'
|
||||||
if port is not None:
|
if port is not None:
|
||||||
|
|||||||
Reference in new issue
Block a user