Skip to content

Commit

Permalink
Improve logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
Johan Bloemberg committed Nov 12, 2016
1 parent 27a4e01 commit 1cf1341
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions homeassistant/components/sensor/dsmr.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
@asyncio.coroutine
def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
"""Setup DSMR sensors."""
# suppres logging
logging.getLogger('dsmr_parser').setLevel(logging.ERROR)

from dsmr_parser import obis_references as obis

dsmr_version = config[CONF_DSMR_VERSION]
Expand Down Expand Up @@ -119,6 +122,7 @@ def read_telegrams(self, queue):
while True:
# asynchronously get latest telegram when it arrives
self._telegram = yield from queue.get()
_LOGGER.debug('received DSMR telegram')

# make all device entities aware of new telegram
for device in self.devices:
Expand Down

0 comments on commit 1cf1341

Please sign in to comment.