Tighten context onboarding and actuator suggestions
This commit is contained in:
@@ -92,7 +92,9 @@ _ACTUATOR_DOMAINS = frozenset({
|
||||
"input_button",
|
||||
"lock",
|
||||
"light",
|
||||
"media_player",
|
||||
"number",
|
||||
"remote",
|
||||
"siren",
|
||||
"switch",
|
||||
"valve",
|
||||
@@ -225,6 +227,8 @@ def _actuator_category(entity: HaEntitySummary) -> str:
|
||||
return "lock"
|
||||
if entity.domain == "fan":
|
||||
return "fan"
|
||||
if entity.domain in {"media_player", "remote"}:
|
||||
return "media_tv"
|
||||
if entity.domain in {"input_boolean", "number"}:
|
||||
return "helper"
|
||||
return entity.domain
|
||||
|
||||
Reference in New Issue
Block a user