mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
improve logging from rfxtrx component
This commit is contained in:
parent
5ed22f3ef0
commit
6d83ebc5e4
@ -218,13 +218,14 @@ def get_new_device(event, config, device):
|
|||||||
if not config[ATTR_AUTOMATIC_ADD]:
|
if not config[ATTR_AUTOMATIC_ADD]:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
pkt_id = "".join("{0:02x}".format(x) for x in event.data)
|
||||||
_LOGGER.info(
|
_LOGGER.info(
|
||||||
"Automatic add %s rfxtrx device (Class: %s Sub: %s)",
|
"Automatic add %s rfxtrx device (Class: %s Sub: %s Packet_id: %s)",
|
||||||
device_id,
|
device_id,
|
||||||
event.device.__class__.__name__,
|
event.device.__class__.__name__,
|
||||||
event.device.subtype
|
event.device.subtype,
|
||||||
|
pkt_id
|
||||||
)
|
)
|
||||||
pkt_id = "".join("{0:02x}".format(x) for x in event.data)
|
|
||||||
datas = {ATTR_STATE: False, ATTR_FIREEVENT: False}
|
datas = {ATTR_STATE: False, ATTR_FIREEVENT: False}
|
||||||
signal_repetitions = config[CONF_SIGNAL_REPETITIONS]
|
signal_repetitions = config[CONF_SIGNAL_REPETITIONS]
|
||||||
new_device = device(pkt_id, event, datas,
|
new_device = device(pkt_id, event, datas,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user