mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +00:00
Alexa typing part 4 (capabilities) (#97915)
* capabilities * hvacmode * tweaks * name * Corrections * Missed hints * remove unreachabe code
This commit is contained in:
parent
5e020ea354
commit
3f542c47fd
File diff suppressed because it is too large
Load Diff
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user