Skip to content

Commit

Permalink
Inkbird sousvide tests: ensure device is on to test HVACAction
Browse files Browse the repository at this point in the history
- Breville dehumidifier: deprecate separate humidity sensor
   - this slipped through review
  • Loading branch information
make-all committed Oct 1, 2024
1 parent d24f657 commit 289b37d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ secondary_entities:
- dps_val: "24"
value: "24h"
- entity: sensor
deprecated: humidifier.current_humidity
class: humidity
dps:
- id: 104
Expand Down
4 changes: 4 additions & 0 deletions tests/devices/test_inkbird_sousvide.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ def test_hvac_modes(self):
self.assertCountEqual(self.subject.hvac_modes, [HVACMode.OFF, HVACMode.HEAT])

def test_hvac_action(self):
self.dps[HVACMODE_DPS] = True
self.dps[HVACACTION_DPS] = "stop"
self.assertEqual(self.subject.hvac_action, HVACAction.OFF)

Expand All @@ -150,6 +151,9 @@ def test_hvac_action(self):
self.dps[HVACACTION_DPS] = "complete"
self.assertEqual(self.subject.hvac_action, HVACAction.IDLE)

self.dps[HVACMODE_DPS] = False
self.assertEqual(self.subject.hvac_action, HVACAction.OFF)

async def test_turn_on(self):
async with assert_device_properties_set(
self.subject._device, {HVACMODE_DPS: True}
Expand Down

0 comments on commit 289b37d

Please sign in to comment.