mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 08:47:10 +00:00
Fix HomeKit test (#15860)
* Don't raise NotImplementedError during test
This commit is contained in:
parent
1d8678c431
commit
f09f153014
@ -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…
x
Reference in New Issue
Block a user