Remove logging from state in flume (#42126)

This commit is contained in:
J. Nick Koston 2020-10-20 09:41:06 -05:00 committed by GitHub
parent e5aa5e2c35
commit 5a907095e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -140,18 +140,8 @@ class FlumeSensor(CoordinatorEntity):
"""Return the state of the sensor."""
sensor_key = self._flume_query_sensor[0]
if sensor_key not in self._flume_device.values:
_LOGGER.debug(
"Updating sensor: '%s', key: '%s' is not yet available.",
self._name,
sensor_key,
)
return None
_LOGGER.debug(
"Updating sensor: '%s', value: '%s'",
self._name,
self._flume_device.values[sensor_key],
)
return _format_state_value(self._flume_device.values[sensor_key])
@property