Update rfxtrx.py

This commit is contained in:
Daniel Høyer Iversen 2015-11-01 14:20:11 +01:00
parent 77539a5b89
commit 0ff6a460c2

View File

@ -31,7 +31,7 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None):
def sensor_update(event): def sensor_update(event):
""" Callback for sensor updates from the RFXtrx gateway. """ """ Callback for sensor updates from the RFXtrx gateway. """
if isinstance(event.device, SensorEvent): if isinstance(event, SensorEvent):
entity_id = slugify(event.device.id_string.lower()) entity_id = slugify(event.device.id_string.lower())
# Add entity if not exist and the automatic_add is True # Add entity if not exist and the automatic_add is True