mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
pleasin the hound
This commit is contained in:
parent
7de3c62846
commit
8ef8dbc868
@ -95,7 +95,6 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||||||
schema=RESUME_PROGRAM_SCHEMA)
|
schema=RESUME_PROGRAM_SCHEMA)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class NuHeatThermostat(ClimateDevice):
|
class NuHeatThermostat(ClimateDevice):
|
||||||
"""Representation of a NuHeat Thermostat."""
|
"""Representation of a NuHeat Thermostat."""
|
||||||
|
|
||||||
|
@ -141,15 +141,18 @@ class TestNuHeat(unittest.TestCase):
|
|||||||
def test_set_hold_mode(self):
|
def test_set_hold_mode(self):
|
||||||
"""Test set hold mode."""
|
"""Test set hold mode."""
|
||||||
self.thermostat.set_hold_mode("temperature")
|
self.thermostat.set_hold_mode("temperature")
|
||||||
self.assertEqual(self.thermostat._thermostat.schedule_mode, SCHEDULE_HOLD)
|
self.assertEqual(
|
||||||
|
self.thermostat._thermostat.schedule_mode, SCHEDULE_HOLD)
|
||||||
self.assertTrue(self.thermostat._force_update)
|
self.assertTrue(self.thermostat._force_update)
|
||||||
|
|
||||||
self.thermostat.set_hold_mode("temporary_temperature")
|
self.thermostat.set_hold_mode("temporary_temperature")
|
||||||
self.assertEqual(self.thermostat._thermostat.schedule_mode, SCHEDULE_TEMPORARY_HOLD)
|
self.assertEqual(
|
||||||
|
self.thermostat._thermostat.schedule_mode, SCHEDULE_TEMPORARY_HOLD)
|
||||||
self.assertTrue(self.thermostat._force_update)
|
self.assertTrue(self.thermostat._force_update)
|
||||||
|
|
||||||
self.thermostat.set_hold_mode("auto")
|
self.thermostat.set_hold_mode("auto")
|
||||||
self.assertEqual(self.thermostat._thermostat.schedule_mode, SCHEDULE_RUN)
|
self.assertEqual(
|
||||||
|
self.thermostat._thermostat.schedule_mode, SCHEDULE_RUN)
|
||||||
self.assertTrue(self.thermostat._force_update)
|
self.assertTrue(self.thermostat._force_update)
|
||||||
|
|
||||||
def test_set_temperature(self):
|
def test_set_temperature(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user