mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 06:05:10 +02:00
Remove unneeded type checking from Sensibo (#85231)
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user