Skip to content

Commit

Permalink
Response example dummy added
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed Mar 26, 2018
1 parent 3eae367 commit 6aa09ac
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions miio/tests/test_waterpurifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,23 @@ class DummyWaterPurifier(DummyDevice, WaterPurifier):
def __init__(self, *args, **kwargs):
self.state = {
'power': 'on',
'mode': 'unknown',
'tds': 'unknown',
'filter1_life': -1,
'filter1_state': -1,
'filter_life': -1,
'filter_state': -1,
'life': -1,
'state': -1,
'level': 'unknown',
'volume': 'unknown',
'filter': 'unknown',
'usage': 'unknown',
'temperature': 'unknown',
'uv_life': -1,
'uv_state': -1,
'elecval_state': 'unknown'

}
self.return_values = {
'get_prop': self._get_state,
Expand Down

0 comments on commit 6aa09ac

Please sign in to comment.