mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Update logger output
This commit is contained in:
parent
3b7f6d3b67
commit
9f10ab5e7a
@ -38,7 +38,7 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
|||||||
if entity_id not in rfxtrx.RFX_DEVICES:
|
if entity_id not in rfxtrx.RFX_DEVICES:
|
||||||
automatic_add = config.get('automatic_add', True)
|
automatic_add = config.get('automatic_add', True)
|
||||||
if automatic_add:
|
if automatic_add:
|
||||||
_LOGGER.info("Automatic add %s rfxtrx.light", entity_id)
|
_LOGGER.info("Automatic add %s rfxtrx.sensor", entity_id)
|
||||||
new_sensor = RfxtrxSensor(event)
|
new_sensor = RfxtrxSensor(event)
|
||||||
rfxtrx.RFX_DEVICES[entity_id] = new_sensor
|
rfxtrx.RFX_DEVICES[entity_id] = new_sensor
|
||||||
add_devices_callback([new_sensor])
|
add_devices_callback([new_sensor])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user