mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-11 17:14:28 +05:00
add http v parsing
This commit is contained in:
@@ -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