Skip to content

Commit

Permalink
test(controller): add integ tests for action_delta
Browse files Browse the repository at this point in the history
related to #165
  • Loading branch information
xaviml committed Nov 27, 2020
1 parent 2177c55 commit 1315735
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fired_actions: ["on_hold", 0.4, "off_hold", 0.4, "on_hold"]
expected_calls_count: 3
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fired_actions: ["on_hold", 0.6, "on_hold", 0.6, "on_hold"]
expected_calls_count: 3
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fired_actions: ["on_hold", 0.4, "on_hold", 0.4, "on_hold"]
expected_calls_count: 1
17 changes: 17 additions & 0 deletions tests/integ_tests/other_action_delta_attr/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
light_chambre_chevet:
module: controllerx
class: HueDimmerController
controller: 00:17:88:01:10:5e:5a:f6
integration: zha
light: light.chevet
smooth_power_on: true
action_delta: 500
merge_mapping:
on_hold:
- service: cover.open_cover
data:
entity_id: cover.chambre
off_hold:
- service: cover.open_cover
data:
entity_id: cover.chambre

0 comments on commit 1315735

Please sign in to comment.