-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(feature_support): add a default supported_feature value
related #314
- Loading branch information
Showing
6 changed files
with
93 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
tests/integ_tests/supported_features_field/arrow_hold_test.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# The light theorically supports xy_color, but since we are overriding the value | ||
# from configuration, ControllerX should send color_temp and not xy_color | ||
# because light_mode is auto. | ||
entity_state_attributes: | ||
supported_features: 0b1111111 # Everything supported from the device | ||
color_temp: 200 | ||
entity_state: "on" | ||
fired_actions: [arrow_right_hold, 0.450, arrow_right_release] | ||
expected_calls: | ||
- service: light/turn_on | ||
data: | ||
entity_id: light.bedroom | ||
transition: 0.35 | ||
color_temp: 234.7 | ||
- service: light/turn_on | ||
data: | ||
entity_id: light.bedroom | ||
transition: 0.35 | ||
color_temp: 269.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
livingroom_controller: | ||
module: controllerx | ||
class: E1810Controller | ||
controller: sensor.livingroom_controller_action | ||
integration: z2m | ||
light: light.bedroom | ||
supported_features: 0b1101111 # Everything except xy_color |