Fix WUnderground spamming logs (#12548)

This commit is contained in:
Otto Winter 2018-02-20 18:01:34 +01:00 committed by Paulus Schoutsen
parent 1d8a5147e9
commit f2a2727a15

View file

@ -790,7 +790,5 @@ class WUndergroundData(object):
self.data = result
except ValueError as err:
_LOGGER.error("Check WUnderground API %s", err.args)
self.data = None
except (asyncio.TimeoutError, aiohttp.ClientError) as err:
_LOGGER.error("Error fetching WUnderground data: %s", repr(err))
self.data = None