Fix HomeKit test (#15860)
* Don't raise NotImplementedError during test
This commit is contained in:
parent
1d8678c431
commit
f09f153014
1 changed files with 2 additions and 0 deletions
|
@ -104,6 +104,7 @@ async def test_battery_service(hass, hk_driver):
|
|||
await hass.async_block_till_done()
|
||||
|
||||
acc = HomeAccessory(hass, hk_driver, 'Battery Service', entity_id, 2, None)
|
||||
acc.update_state = lambda x: None
|
||||
assert acc._char_battery.value == 0
|
||||
assert acc._char_low_battery.value == 0
|
||||
assert acc._char_charging.value == 2
|
||||
|
@ -126,6 +127,7 @@ async def test_battery_service(hass, hk_driver):
|
|||
await hass.async_block_till_done()
|
||||
|
||||
acc = HomeAccessory(hass, hk_driver, 'Battery Service', entity_id, 2, None)
|
||||
acc.update_state = lambda x: None
|
||||
assert acc._char_battery.value == 0
|
||||
assert acc._char_low_battery.value == 0
|
||||
assert acc._char_charging.value == 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue