Skip to content

Commit

Permalink
exception to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrom committed Nov 7, 2018
1 parent 8164278 commit 4ec275a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions giosaqi.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async def async_setup_platform(hass, config, async_add_entities,
dev.append(gios_sensor)
except (aiohttp.client_exceptions.ClientConnectorError,
asyncio.TimeoutError):
_LOGGER.exception('Failed to connect to GIOS servers.')
_LOGGER.debug('Failed to connect to GIOS servers.')
raise PlatformNotReady
async_add_entities(dev, True)

Expand Down Expand Up @@ -128,7 +128,7 @@ async def async_update(self):
self._data = None
except (aiohttp.client_exceptions.ClientConnectorError,
asyncio.TimeoutError):
_LOGGER.exception('Failed to connect to GIOS servers.')
_LOGGER.debug('Failed to connect to GIOS servers.')
self._data = None
_LOGGER.debug("Sensor data: %s", self._data)

0 comments on commit 4ec275a

Please sign in to comment.