Alexa typing part 4 (capabilities) (#97915)

* capabilities

* hvacmode

* tweaks

* name

* Corrections

* Missed hints

* remove unreachabe code
This commit is contained in:
Jan Bouwhuis 2023-08-08 11:07:52 +02:00 committed by GitHub
parent 5e020ea354
commit 3f542c47fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 185 additions and 174 deletions

View file

@ -399,7 +399,7 @@ class AlexaSemantics:
"""Add state mapping between states and interface directives."""
self._state_mappings.append(semantics)
def add_states_to_value(self, states: list[str], value: int | float) -> None:
def add_states_to_value(self, states: list[str], value: Any) -> None:
"""Add StatesToValue stateMappings."""
self._add_state_mapping(
{"@type": self.STATES_TO_VALUE, "states": states, "value": value}