mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 14:45:09 +02:00
Add support for device class in target selector (#43768)
This commit is contained in:
@@ -120,4 +120,4 @@ class TargetSelector(Selector):
|
||||
Value should follow cv.ENTITY_SERVICE_FIELDS format.
|
||||
"""
|
||||
|
||||
CONFIG_SCHEMA = vol.Schema({"entity": {"domain": str}})
|
||||
CONFIG_SCHEMA = vol.Schema({"entity": {"domain": str, "device_class": str}})
|
||||
|
@@ -125,6 +125,7 @@ def test_time_selector_schema(schema):
|
||||
{},
|
||||
{"entity": {}},
|
||||
{"entity": {"domain": "light"}},
|
||||
{"entity": {"domain": "binary_sensor", "device_class": "motion"}},
|
||||
),
|
||||
)
|
||||
def test_target_selector_schema(schema):
|
||||
|
Reference in New Issue
Block a user