From 6d83ebc5e4bff882f791060eb3cbbb157050ff4b Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 12 Aug 2016 20:46:54 +0200 Subject: [PATCH] improve logging from rfxtrx component --- homeassistant/components/rfxtrx.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/rfxtrx.py b/homeassistant/components/rfxtrx.py index e58502d1091..f15bd703ca1 100644 --- a/homeassistant/components/rfxtrx.py +++ b/homeassistant/components/rfxtrx.py @@ -218,13 +218,14 @@ def get_new_device(event, config, device): if not config[ATTR_AUTOMATIC_ADD]: return + pkt_id = "".join("{0:02x}".format(x) for x in event.data) _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, 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} signal_repetitions = config[CONF_SIGNAL_REPETITIONS] new_device = device(pkt_id, event, datas,