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