mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +00:00
Mark type hint as compulsory for entity.assumed_state property (#145187)
This commit is contained in:
parent
f11e040662
commit
07c3c3bba8
@ -118,7 +118,7 @@ class RaspyRFMSwitch(SwitchEntity):
|
||||
return self._name
|
||||
|
||||
@property
|
||||
def assumed_state(self):
|
||||
def assumed_state(self) -> bool:
|
||||
"""Return True when the current state cannot be queried."""
|
||||
return True
|
||||
|
||||
|
@ -707,6 +707,7 @@ _ENTITY_MATCH: list[TypeHintMatch] = [
|
||||
TypeHintMatch(
|
||||
function_name="assumed_state",
|
||||
return_type="bool",
|
||||
mandatory=True,
|
||||
),
|
||||
TypeHintMatch(
|
||||
function_name="force_update",
|
||||
|
Loading…
x
Reference in New Issue
Block a user