mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Remove redundant typing cast in miele (#143913)
This commit is contained in:
parent
9db34fe232
commit
97084e9382
@ -496,7 +496,7 @@ class MieleSensor(MieleEntity, SensorEntity):
|
||||
@property
|
||||
def native_value(self) -> StateType:
|
||||
"""Return the state of the sensor."""
|
||||
return cast(StateType, self.entity_description.value_fn(self.device))
|
||||
return self.entity_description.value_fn(self.device)
|
||||
|
||||
|
||||
class MieleStatusSensor(MieleSensor):
|
||||
|
Loading…
x
Reference in New Issue
Block a user