Przeglądaj źródła

Nashone thermostat: further test update

There are now extra attributes to account for.
Jason Rumney 3 lat temu
rodzic
commit
3dca8cd9aa

+ 5 - 1
tests/devices/test_nashone_mts700wb_thermostat.py

@@ -147,7 +147,11 @@ class TestNashoneMTS700WBThermostat(
     #     self.assertEqual(self.subject.hvac_action, HVACAction.COOLING)
 
     def test_extra_state_attributes(self):
-        self.assertEqual(self.subject.extra_state_attributes, {})
+        self.dps[HVACACTION_DPS] = "manual"
+        self.assertEqual(
+            self.subject.extra_state_attributes,
+            {"work_state": "manual"},
+        )
 
     def test_icons(self):
         self.assertEqual(self.basicNumber.icon, "mdi:arrow-collapse-up")