Skip to content

Commit

Permalink
test(x40): invalid customize
Browse files Browse the repository at this point in the history
  • Loading branch information
rokam committed Jul 28, 2024
1 parent e2e5704 commit ff7f2bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/devices/x40/device_x40_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,6 @@ def test_customize(self) -> None:
mock_message.current_temperature = 53
new_status = self.device.process_message(b"")
assert new_status[DeviceAttributes.current_temperature] == 26.5

self.device.set_customize("{") # Test invalid json
assert self.device.precision_halves is False

0 comments on commit ff7f2bb

Please sign in to comment.