mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 02:07:54 +00:00
Remove unneeded type checking from Sensibo (#85231)
This commit is contained in:
parent
4335a7c653
commit
26a964b90a
@ -352,8 +352,6 @@ class SensiboDeviceSensor(SensiboDeviceBaseEntity, SensorEntity):
|
|||||||
def native_value(self) -> StateType | datetime:
|
def native_value(self) -> StateType | datetime:
|
||||||
"""Return value of sensor."""
|
"""Return value of sensor."""
|
||||||
state = self.entity_description.value_fn(self.device_data)
|
state = self.entity_description.value_fn(self.device_data)
|
||||||
if isinstance(state, str):
|
|
||||||
return state.lower()
|
|
||||||
return state
|
return state
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
x
Reference in New Issue
Block a user