Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions homeassistant/components/binary_sensor/xiaomi_aqara.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def parse_data(self, data, raw_data):
else:
self._should_poll = True
if self.entity_id is not None:
self._hass.bus.fire('motion', {
self._hass.bus.fire('xiaomi_aqara.motion', {
'entity_id': self.entity_id
})

Expand Down Expand Up @@ -414,7 +414,7 @@ def parse_data(self, data, raw_data):
_LOGGER.warning("Unsupported click_type detected: %s", value)
return False

self._hass.bus.fire('click', {
self._hass.bus.fire('xiaomi_aqara.click', {
'entity_id': self.entity_id,
'click_type': click_type
})
Expand Down Expand Up @@ -450,14 +450,14 @@ def device_state_attributes(self):
def parse_data(self, data, raw_data):
"""Parse data sent by gateway."""
if self._data_key in data:
self._hass.bus.fire('cube_action', {
self._hass.bus.fire('xiaomi_aqara.cube_action', {
'entity_id': self.entity_id,
'action_type': data[self._data_key]
})
self._last_action = data[self._data_key]

if 'rotate' in data:
self._hass.bus.fire('cube_action', {
self._hass.bus.fire('xiaomi_aqara.cube_action', {
'entity_id': self.entity_id,
'action_type': 'rotate',
'action_value': float(data['rotate'].replace(",", "."))
Expand Down