From 64453638bb1a97d4601a81f79a232be5cd91b56f Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Wed, 29 Aug 2018 22:29:34 +0200 Subject: [PATCH] Fix data_key override by parent class (#16278) --- homeassistant/components/binary_sensor/xiaomi_aqara.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/binary_sensor/xiaomi_aqara.py b/homeassistant/components/binary_sensor/xiaomi_aqara.py index c42090e3b7a..730b662b90b 100644 --- a/homeassistant/components/binary_sensor/xiaomi_aqara.py +++ b/homeassistant/components/binary_sensor/xiaomi_aqara.py @@ -374,11 +374,11 @@ class XiaomiCube(XiaomiBinarySensor): self._last_action = None self._state = False if 'proto' not in device or int(device['proto'][0:1]) == 1: - self._data_key = 'status' + data_key = 'status' else: - self._data_key = 'cube_status' + data_key = 'cube_status' XiaomiBinarySensor.__init__(self, device, 'Cube', xiaomi_hub, - None, None) + data_key, None) @property def device_state_attributes(self):