Improve type hints in mqtt (#74295)
This commit is contained in:
parent
6f67ae1dfc
commit
64bfa20f6a
8 changed files with 53 additions and 49 deletions
|
@ -347,7 +347,7 @@ class MqttSensor(MqttEntity, RestoreSensor):
|
|||
return self._config.get(CONF_UNIT_OF_MEASUREMENT)
|
||||
|
||||
@property
|
||||
def force_update(self):
|
||||
def force_update(self) -> bool:
|
||||
"""Force update."""
|
||||
return self._config[CONF_FORCE_UPDATE]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue