From e0f1af32d43554c345405e4b3067ce2eced1de2f Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Fri, 12 Oct 2018 09:00:44 +0200 Subject: [PATCH] Prefix all xiaomi_aqara events --- homeassistant/components/binary_sensor/xiaomi_aqara.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/binary_sensor/xiaomi_aqara.py b/homeassistant/components/binary_sensor/xiaomi_aqara.py index e082c886f036f..15fa37e7906cf 100644 --- a/homeassistant/components/binary_sensor/xiaomi_aqara.py +++ b/homeassistant/components/binary_sensor/xiaomi_aqara.py @@ -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 }) @@ -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 }) @@ -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(",", "."))