Skip to content

Commit

Permalink
Fixed mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
andylockran committed Feb 5, 2024
1 parent 6c9a946 commit bae4337
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/serial_stubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
)

class MockHeatmiserPRT(heatmiser.HeatmiserThermostatPRT):
"""
This is a mock of the PRT Thermostat in 64 bit mode (5/2 day programming mode)
If you need this to work with the 7 day programming mode, it'll need some more work.
"""
def __init__(self, address, uh1):
super(MockHeatmiserPRT, self).__init__(address, uh1)
self.dcb = bytearray([0,64,0,15,2,0,2,1,0,0,0,1,0,0,0,20,0,15,21,28,1,1,0,0,0,0,0,0,255,255,255,255,0,201,0,0,4,16,22,18,24,0,19,24,0,5,24,0,19,24,0,5,5,30,23,22,0,20,24,0,16,24,0,16])
Expand Down

0 comments on commit bae4337

Please sign in to comment.