Remove unneeded type checking from Sensibo (#85231)

This commit is contained in:
G Johansson 2023-01-05 18:50:05 +01:00 committed by GitHub
parent 4335a7c653
commit 26a964b90a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -352,8 +352,6 @@ class SensiboDeviceSensor(SensiboDeviceBaseEntity, SensorEntity):
def native_value(self) -> StateType | datetime:
"""Return value of sensor."""
state = self.entity_description.value_fn(self.device_data)
if isinstance(state, str):
return state.lower()
return state
@property