Bump zwave-js-server-python to 0.50.1 (#94760)

* Bump zwave-js-server-python to 0.50.0

* handle additional upstream changes

* Additional changes

* fix tests

* Convert two similar functions to be one function

* Fix docstring

* Remove conditional pydantic import

* Revert scope change

* Bump zwave-js-server-python

* Set default return value for command

* Remove line breaks

* Add coverage
This commit is contained in:
Raman Gupta 2023-08-10 01:28:08 -04:00 committed by GitHub
parent 2841cbbed2
commit 5d3d66e47d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 171 additions and 128 deletions

View file

@ -63,6 +63,8 @@ async def test_switch(
state = hass.states.get(SWITCH_ENTITY)
assert state.state == "on"
client.async_send_command.reset_mock()
# Test turning off
await hass.services.async_call(
"switch", "turn_off", {"entity_id": SWITCH_ENTITY}, blocking=True