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