huginn_myq_agent 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 44661a919fb795033e31e61b2dcb83f4d4ac0d9d1def390f13a21c9772cacedb
4
- data.tar.gz: c9a7c998b1e184ee9b995a35d049fe732f2a2b34af84fb01a81be67fefb5791a
3
+ metadata.gz: 1a14d1451dc070eb5e1519f50ff8825755cc970a8458f21fb32753bf15c7eae0
4
+ data.tar.gz: 93c72c7c6ea7cf3c16c5a8e236560171758f108e6b1e0809162e93f116e61796
5
5
  SHA512:
6
- metadata.gz: a7b7243bbfa07a9cd9b308f970096db930ad4193f6cb9754ea6819ed4cbd4c903099dc8c455cb63d6ddde807fbcd475d0e843efbd396388646f9412d835f37b3
7
- data.tar.gz: d88b15ef578028e55609a230622c7eb80992deeeeda26b2bb81e6efb78944c5983a0c11d763a72759d31f84f5c872837f905dea0251757a174eb63fd8fd15e99
6
+ metadata.gz: 702af78b42d4bdaf914e697e8a804614dc24a2b04c6da560d795a65024dd1ca3c9480e80fbfa8ea507431c685670e4efbe1890aad46daced2abd446ab2928ea0
7
+ data.tar.gz: 9c4897704759774aff5221d3a42a3c87acf625b8243d37c80f3e9011aafa87daf1cb82fdb26b6773d4cb019017ccbc75554e454485bd5fc8a68fefc9df00bb59
@@ -49,16 +49,16 @@ module Agents
49
49
  def check
50
50
  door = select_door(interpolated['door_name'])
51
51
  if interpolated['action'] == 'status'
52
- create_event :payload => status(door.name)
52
+ create_event :payload => status(door)
53
53
  elsif interpolated['action'] == 'open'
54
54
  open_door(door)
55
- create_event :payload => status(door.name)
55
+ create_event :payload => status(door)
56
56
  elsif interpolated['action'] == 'close'
57
57
  close_door(door)
58
- create_event :payload => status(door.name)
58
+ create_event :payload => status(door)
59
59
  elsif interpolated['action'] == 'toggle'
60
60
  toggle_door(door)
61
- create_event :payload => status(door.name)
61
+ create_event :payload => status(door)
62
62
  end
63
63
  end
64
64
 
@@ -89,7 +89,7 @@ module Agents
89
89
  door.open
90
90
  end
91
91
 
92
- def toggle_door(dorr)
92
+ def toggle_door(door)
93
93
  if door.status == "open"
94
94
  door.close
95
95
  elsif door.status == "closed"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: huginn_myq_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesse Gillies
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-14 00:00:00.000000000 Z
11
+ date: 2020-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler