mirror of
https://github.com/home-assistant/core.git
synced 2025-05-18 12:59:14 +00:00
This commit is contained in:
parent
65c2a25736
commit
ece7b498ed
@ -467,4 +467,12 @@ class XiaomiCube(XiaomiBinarySensor):
|
|||||||
})
|
})
|
||||||
self._last_action = 'rotate'
|
self._last_action = 'rotate'
|
||||||
|
|
||||||
|
if 'rotate_degree' in data:
|
||||||
|
self._hass.bus.fire('xiaomi_aqara.cube_action', {
|
||||||
|
'entity_id': self.entity_id,
|
||||||
|
'action_type': 'rotate',
|
||||||
|
'action_value': float(data['rotate_degree'].replace(",", "."))
|
||||||
|
})
|
||||||
|
self._last_action = 'rotate'
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user