sensi 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/sensi/thermostat.rb +3 -3
- data/lib/sensi/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cbeb0749d1511ebdbd000692f44e8516d70dc08f
|
4
|
+
data.tar.gz: 37bf58dcba51b07403eed1e2c9db403167fa7ed9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f983b7006cd0c5edf76a819b46ba69c24f40c5cc7ed313f3e7d9b6ebaa6e76eec5e15628bb5edd324b8bf7356917be4b533bb8591a5371b9397e563dbbdba87d
|
7
|
+
data.tar.gz: 2c0dd40fff2ec28f58bf81c1a85fcacac5b2a97e2f188dfc2a5f9ebd0fe7750e53f681574a25b9c85919e1c45355634c14e9011a2a65aa665dfe122b383ae566
|
data/lib/sensi/thermostat.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require "sensi/version"
|
2
2
|
require 'sensi/hash_to_object'
|
3
3
|
require 'sensi/thermostat_connection'
|
4
|
-
require 'byebug'
|
4
|
+
# require 'byebug'
|
5
5
|
|
6
6
|
module Sensi
|
7
7
|
|
@@ -273,10 +273,10 @@ module Sensi
|
|
273
273
|
case mode
|
274
274
|
when 'Heat'
|
275
275
|
return true if system_temperature(type: :heat) == temperature
|
276
|
-
result = @thermostat_connection.set(self.icd, 'SetHeat', temperature.to_s
|
276
|
+
result = @thermostat_connection.set(self.icd, 'SetHeat', temperature.to_s, scale.to_s.capitalize)
|
277
277
|
when 'Cool'
|
278
278
|
return true if system_temperature(type: :cool) == temperature
|
279
|
-
result = @thermostat_connection.set(self.icd, 'SetCool', temperature.to_s
|
279
|
+
result = @thermostat_connection.set(self.icd, 'SetCool', temperature.to_s, scale.to_s.capitalize)
|
280
280
|
when 'Off'
|
281
281
|
|
282
282
|
when 'Auto'
|
data/lib/sensi/version.rb
CHANGED