Remove wink sensor log calls (#20798)

* Removed log calls

* pass during exception
This commit is contained in:
William Scanlon 2019-02-07 00:22:44 -05:00 committed by Martin Hjelmare
parent 850556d6c3
commit ff84c01d41

View File

@ -91,10 +91,9 @@ class WinkSensorDevice(WinkDevice):
def device_state_attributes(self):
"""Return the state attributes."""
super_attrs = super().device_state_attributes
_LOGGER.debug("Adding in eggs if egg minder")
try:
super_attrs['egg_times'] = self.wink.eggs()
_LOGGER.debug("Its an egg minder")
except AttributeError:
_LOGGER.debug("Not an eggtray")
# Ignore error, this sensor isn't an eggminder
pass
return super_attrs