diff --git a/homeassistant/components/sensor/mysensors.py b/homeassistant/components/sensor/mysensors.py index 3876b260dfcfe..66c36a8d9b178 100644 --- a/homeassistant/components/sensor/mysensors.py +++ b/homeassistant/components/sensor/mysensors.py @@ -81,5 +81,6 @@ def _get_sensor_type(self): TEMP_CELSIUS if self.gateway.metric else TEMP_FAHRENHEIT) sensor_type = SENSORS.get(set_req(self.value_type).name, [None, None]) if isinstance(sensor_type, dict): - sensor_type = sensor_type.get(pres(self.child_type).name) + sensor_type = sensor_type.get( + pres(self.child_type).name, [None, None]) return sensor_type