Remove redundant typing cast in miele (#143913)

This commit is contained in:
Marc Mueller 2025-04-30 03:13:23 +02:00 committed by GitHub
parent 9db34fe232
commit 97084e9382
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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):