mirror of
https://github.com/andvikt/mega_hacs.git
synced 2026-11-02 19:58: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)
|
||||
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:
|
||||
|
||||
Reference in new issue
Block a user