Improve type hints in mqtt (#74295)

This commit is contained in:
epenet 2022-07-02 19:15:54 +02:00 committed by GitHub
parent 6f67ae1dfc
commit 64bfa20f6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 53 additions and 49 deletions

View file

@ -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]