mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 12:15:08 +02:00
Remove redundant typing cast in miele (#143913)
This commit is contained in:
@@ -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):
|
||||||
|
Reference in New Issue
Block a user