Fix demo platform support (#12070)
* Fixing demo platform to use support_flags * Fixed tests as well * Moved humidity low / high as always available based on defaults * Updated demo platform to show more combinations
This commit is contained in:
1 parent
cab6c694c5
commit
3e41422caa
2 files changed
+39
-15
No files matched your search
@@ -224,10 +224,10 @@ class TestDemoClimate(unittest.TestCase):
|
||||
|
||||
def test_set_hold_mode_none(self):
|
||||
"""Test setting the hold mode off/false."""
|
||||
climate.set_hold_mode(self.hass, None, ENTITY_ECOBEE)
|
||||
climate.set_hold_mode(self.hass, 'off', ENTITY_ECOBEE)
|
||||
self.hass.block_till_done()
|
||||
state = self.hass.states.get(ENTITY_ECOBEE)
|
||||
self.assertEqual(None, state.attributes.get('hold_mode'))
|
||||
self.assertEqual('off', state.attributes.get('hold_mode'))
|
||||
|
||||
def test_set_aux_heat_bad_attr(self):
|
||||
"""Test setting the auxiliary heater without required attribute."""
|
||||
|
||||
Reference in new issue
Block a user