Mark type hint as compulsory for entity.assumed_state property (#145187)

This commit is contained in:
epenet 2025-05-19 11:56:05 +02:00 committed by GitHub
parent f11e040662
commit 07c3c3bba8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -118,7 +118,7 @@ class RaspyRFMSwitch(SwitchEntity):
return self._name return self._name
@property @property
def assumed_state(self): def assumed_state(self) -> bool:
"""Return True when the current state cannot be queried.""" """Return True when the current state cannot be queried."""
return True return True

View File

@ -707,6 +707,7 @@ _ENTITY_MATCH: list[TypeHintMatch] = [
TypeHintMatch( TypeHintMatch(
function_name="assumed_state", function_name="assumed_state",
return_type="bool", return_type="bool",
mandatory=True,
), ),
TypeHintMatch( TypeHintMatch(
function_name="force_update", function_name="force_update",