lib/ecobee/thermostat.rb
# converts Ecobee farenheit * 10 integer input, returns 
#  farenheit or celsius output rounded to nearest .5
converts Ecobee farenheit * 10 integer input, returns
farenheit or celsius output rounded to nearest .5
converts Ecobee farenheit * 10 integer input returns farenheit or celsius output rounded to nearest . 5
def unitize(value)
      if celsius?
        celsius = (value.to_f / 10.0 - 32) * 5/9
        (celsius / 5).round(1) * 5
      else
        value.to_f / 10.0
      end
    end
def unitize ( value ) if celsius? celsius = ( value . to_f / 10.0 - 32 ) * 5 / 9 ( celsius / 5 ) . round ( 1 ) * 5 else value . to_f / 10.0 end end
converts Ecobee farenheit * 10 integer input, returns
farenheit or celsius output rounded to nearest .5
converts Ecobee farenheit * 10 integer input returns farenheit or celsius output rounded to nearest . 5
value
<not_specific>