custom-components / climate.programmable_thermostat

Programmable thermostat that let you have a smart thermostat on budget.
The Unlicense
113 stars 35 forks source link

SyntaxWarning: "is" with a literal. Did you mean "=="? #21

Closed jsiemek closed 3 years ago

jsiemek commented 3 years ago

Version 6.3 on HA 0.115.6

Warnings in log:

/home/travis/build/jsiemek/HA/./custom_components/programmable_thermostat/climate.py:109: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if options[0] is "1":
/home/travis/build/jsiemek/HA/./custom_components/programmable_thermostat/climate.py:111: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if self.heaters_entity_ids is not None and options[1] is "1":
/home/travis/build/jsiemek/HA/./custom_components/programmable_thermostat/climate.py:113: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if self.coolers_entity_ids is not None and options[1] is "1":
/home/travis/build/jsiemek/HA/./custom_components/programmable_thermostat/climate.py:115: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if (self.heaters_entity_ids is not None or self.coolers_entity_ids is not None) and  options[2] is "1":
MapoDan commented 3 years ago

Your PR have been merged in 6.4