-
-
Notifications
You must be signed in to change notification settings - Fork 37.1k
Allow area, device, and entity selectors to optionally support multiple selections like target selector #63138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
9ef8b40
d778382
fc76109
fda993b
aea850f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,13 +25,14 @@ def community_post(): | |
| "integration": "zha", | ||
| "manufacturer": "IKEA of Sweden", | ||
| "model": "TRADFRI remote control", | ||
| "multiple": False, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's not update all tests but also leave some where we don't specify
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's exactly what happens; "multiple" has |
||
| } | ||
| }, | ||
| }, | ||
| "light": { | ||
| "name": "Light(s)", | ||
| "description": "The light(s) to control", | ||
| "selector": {"target": {"entity": {"domain": "light"}}}, | ||
| "selector": {"target": {"entity": {"domain": "light", "multiple": False}}}, | ||
| }, | ||
| "force_brightness": { | ||
| "name": "Force turn on brightness", | ||
|
|
@@ -218,10 +219,17 @@ async def test_fetch_blueprint_from_github_gist_url(hass, aioclient_mock): | |
| "motion_entity": { | ||
| "name": "Motion Sensor", | ||
| "selector": { | ||
| "entity": {"domain": "binary_sensor", "device_class": "motion"} | ||
| "entity": { | ||
| "domain": "binary_sensor", | ||
| "device_class": "motion", | ||
| "multiple": False, | ||
| } | ||
| }, | ||
| }, | ||
| "light_entity": {"name": "Light", "selector": {"entity": {"domain": "light"}}}, | ||
| "light_entity": { | ||
| "name": "Light", | ||
| "selector": {"entity": {"domain": "light", "multiple": False}}, | ||
| }, | ||
| } | ||
| assert imported_blueprint.suggested_filename == "balloob/motion_light" | ||
| assert imported_blueprint.blueprint.metadata["source_url"] == url | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we still verify it looks like a uuid ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh nm you do that before passing to validate.