mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 22:57:17 +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
|
@property
|
||||||
def native_value(self) -> StateType:
|
def native_value(self) -> StateType:
|
||||||
"""Return the state of the sensor."""
|
"""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):
|
class MieleStatusSensor(MieleSensor):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user