mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 22:07:10 +00:00
Update rfxtrx.py
This commit is contained in:
parent
77539a5b89
commit
0ff6a460c2
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user