1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 04:50:05 +00:00

Add model_id filter to device selector (#135646)

* Add model_id filter to device selector

* Rerun CI
This commit is contained in:
karwosts
2025-03-02 12:15:37 -08:00
committed by GitHub
parent 8536f2b4cb
commit fa40d02a07
2 changed files with 4 additions and 0 deletions

View File

@@ -164,6 +164,8 @@ DEVICE_FILTER_SELECTOR_CONFIG_SCHEMA = vol.Schema(
vol.Optional("manufacturer"): str,
# Model of device
vol.Optional("model"): str,
# Model ID of device
vol.Optional("model_id"): str,
# Device has to contain entities matching this selector
vol.Optional("entity"): vol.All(
cv.ensure_list, [ENTITY_FILTER_SELECTOR_CONFIG_SCHEMA]
@@ -178,6 +180,7 @@ class DeviceFilterSelectorConfig(TypedDict, total=False):
integration: str
manufacturer: str
model: str
model_id: str
class ActionSelectorConfig(TypedDict):