Commit graph

330 commits

Author SHA1 Message Date
Raman Gupta
41d5256533
Add via_device support to zwave_js ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-12-06 22:56:33 -05:00
Raman Gupta
8d1a70391e
Improve zwave_js test coverage ()
* Improve zwave_js test coverage

* review comments and clean up test
2022-12-06 12:18:21 -07:00
Martin Hjelmare
874315c3fc
Bypass zwave_js config validation if driver not ready () 2022-12-06 12:41:09 -05:00
Raman Gupta
87e2bbbfab
Fix zwave_js_value_updated event ()
* Fix zwave_js_value_updated event

* Fix zwave_js_value_updated event
2022-12-06 10:25:37 +01:00
Erik Montnemery
aaec464627
Add support for managing the silabs multiprotocol add-on ()
* Add support for managing the silabs multiprotocol add-on

* Fix passing context when starting option flow

* Allow unloading a ha yellow config entry

* Fix tests

* Log data passed to ZHA option flow

* Improve ZHA migration logic

* Move tests

* Improve test coverage

* Remove dead code

* Drop automatic ZHA migration
2022-11-16 17:38:07 +01:00
Yukon Vinecki
9098592257
Fix Z-Wave JS cover stop support ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-11-16 13:14:14 +01:00
Martin Hjelmare
9ded232522
Move zwave_js addon manager to hassio integration () 2022-11-10 10:09:52 +01:00
Martin Hjelmare
a1a0284e81
Fix zwave_js port enumeration () 2022-10-26 10:12:30 -05:00
Martin Hjelmare
838691f22f
Refactor zwave_js add-on manager ()
* Make addon slug an instance attribute

* Extract addon name and addon config

* Update docstrings
2022-10-24 18:21:05 +02:00
Raman Gupta
d4c28e04e4
Reduce missed coverage in zwave_js ()
* Reduce missed coverage in zwave_js.climate and cover

* Add switch platform coverage

* Add select platform

* Add lock platform

* Remove one line of coverage from number platform

* update docstring
2022-10-18 10:06:29 +02:00
Martin Hjelmare
030205df8f
Filter out non official zwave_js add-on discovery ()
* Filter out non official zwave_js add-on discovery

* Add test
2022-10-11 17:37:21 +02:00
Martin Hjelmare
62c4cd3c26
Add name and slug to supervisor discovery info () 2022-10-11 16:56:45 +02:00
Raman Gupta
27413cee19
Bump zwave_js lib to 0.43.0 and fix multi-file firmware updates () 2022-10-04 10:40:49 -04:00
kpine
c040a7a152
Set zwave_js climate entity target temp attributes based on current mode ()
* Report temperature correctly

* DRY

* Add test assertions

* Don't catch TypeError (revert)
2022-10-04 11:54:13 +02:00
Raman Gupta
9b7eb6b5a1
Reduce coverage gaps for zwave_js ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-10-03 20:24:11 +02:00
Raman Gupta
3884b4b6bf
Bump zwave-js-server-python to 0.42.0 () 2022-09-28 21:24:04 -04:00
epenet
0d696b84b2
Cleanup root component imports in tests () 2022-09-21 06:57:41 -10:00
epenet
0ac581a0b1
Cleanup EntityFeature in tests () 2022-09-21 10:48:55 +02:00
epenet
7bc2712142
Adjust root-import in tests ()
* Adjust root-import in tests

* Adjust diagnostics

* Adjust button

* Adjust select

* Adjust device_tracker

* Adjust camera

* Adjust humidifier

* Adjust media_source

* Adjust update

* Adjust siren

* Adjust number

* Adjust alarm_control_panel

* Adjust notify

* Adjust sensor

* Adjust switch

* Revert anthemav

* Don't adjust demo humidifier
2022-09-19 15:22:23 +02:00
Raman Gupta
4fbf44cced
Create repair issue if zwave-js-server is too old ()
* Create repair issue if zwave-js-server is too old

* Switch is_fixable to false

* review comments
2022-09-18 21:25:37 +02:00
Raman Gupta
4d6151666e
Handle multiple files properly in zwave_js update entity ()
* Handle multiple files properly in zwave_js update entity

* Until we have progress, set in progress to true. And fix when we write state

* fix tests

* Assert we set in progress to true before we get progress

* Fix tests

* Comment
2022-09-18 14:56:46 +02:00
Raman Gupta
01acc3d1e5
Fix zwave_js update entity startup state ()
* Fix update entity startup state

* Only write state if there is a change

* Add test to show that when an existing entity gets recreated, skipped version does not reset

* Remove unused blocks

* Update homeassistant/components/zwave_js/update.py

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-09-17 20:43:35 +03:00
Raman Gupta
06178d3446
Only redact zwave_js values that are worth redacting ()
* Only redact zwave_js values that are worth redacting

* Tweak test

* Use redacted fixture for test
2022-09-16 15:04:55 -06:00
Marc Mueller
93a5b99191
Rename zwave_js trigger helper to avoid confusion ()
* Rename zwave_js trigger helper to avoid confusion

* Fix test
2022-09-12 18:36:05 -04:00
Raman Gupta
abebf3c067
Switch to new entity naming schema across zwave_js () 2022-09-12 09:14:59 +02:00
Raman Gupta
8cc0b41daf
Fix zwave_js update entity ()
* Test zwave_js update entity progress

* Block until firmware update is done

* Update homeassistant/components/zwave_js/update.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* revert params

* unsub finished event listener

* fix tests

* Add test for returned failure

* refactor a little

* rename

* Remove unnecessary controller logic for mocking

* Clear event when resetting

* Comments

* readability

* Fix test

* Fix test

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-09-09 22:10:56 +02:00
Michael Kowalchuk
19cf5dfc6d
Add zwave_js speed configuration for Leviton ZW4SF fans ()
* Add speed info for Leviton 4 speed fans

* Use new format for fan speed configuration

* Add a fixture and test for the Leviton ZW4SF

* Use pytest.approx
2022-09-09 22:06:01 +02:00
Martin Hjelmare
f11b51e12b
Fix zwave_js device re-interview ()
* Handle stale node and entity info on re-interview

* Add test

* Unsubscribe on config entry unload
2022-09-08 20:15:27 +02:00
Martin Hjelmare
bfe245cc3f
Fix zwave_js default emulate hardware in options flow () 2022-09-08 10:59:40 +02:00
Raman Gupta
37631d2017
Add value ID to zwave_js device diagnostics () 2022-09-08 09:13:01 +02:00
Raman Gupta
fce28d4848
Bump zwave-js-server-python to 0.41.1 ()
* Bump zwave-js-server-python to 0.41.1

* Fix fixture
2022-09-07 07:28:47 +02:00
Raman Gupta
91fbff05db
Improve performance impact of zwave_js update entity and other tweaks ()
* Improve performance impact of zwave_js update entity and other tweaks

* Reduce concurrent polls

* we need to write state after setting in progress to false

* Fix existing tests

* Fix tests by fixing fixtures

* remove redundant conditional

* Add test for delayed startup

* tweaks

* outdent happy path

* Add missing PROGRESS feature support

* Update homeassistant/components/zwave_js/update.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/zwave_js/update.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Fix tests by reverting outdent, PR comments, mark callback

* Remove redundant conditional

* make more readable

* Remove unused SCAN_INTERVAL

* Catch FailedZWaveCommand

* Add comment and remove poll unsub on update

* Fix catching error and add test

* readability

* Fix tests

* Add assertions

* rely on built in progress indicator

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-09-06 09:40:20 -04:00
Raman Gupta
fa987564a7
Handle dead nodes in zwave_js update entity () 2022-09-03 22:53:21 +02:00
Raman Gupta
df214c2d26
Add support for zwave_js firmware update service ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-08-30 12:49:27 -04:00
Raman Gupta
eab0ff5185
Bump zwave-js-server-python to 0.41.0 () 2022-08-27 21:27:41 -04:00
Martin Hjelmare
a6963e6a38
Add zwave_js usb port selection () 2022-08-07 11:06:03 -04:00
Martin Hjelmare
842cc060f8
Fix zwave_js addon info ()
* Add add-on store info command

* Use add-on store info command in zwave_js

* Fix init tests

* Update tests

* Fix method for addon store info

* Fix response parsing

* Fix store addon installed response parsing

* Remove addon info log that can contain network keys

* Add supervisor store addon info test

* Default to version None if add-on not installed

Co-authored-by: Mike Degatano <michael.degatano@gmail.com>

Co-authored-by: Mike Degatano <michael.degatano@gmail.com>
2022-08-03 22:33:05 +02:00
Raman Gupta
4aa6300b8b
Update zwave_js WS API names () 2022-07-27 23:42:17 +02:00
Raman Gupta
44f1d92890
Add new zwave_js notification parameters () 2022-07-27 23:40:44 +02:00
Raman Gupta
3a8748bc93
Bump zwave-js-server-python to 0.40.0 () 2022-07-27 18:01:00 +02:00
kpine
c27fbce7d0
Fix KeyError from zwave_js diagnostics () 2022-07-09 00:20:44 +02:00
Raman Gupta
768e53ac2d
Add zwave_js/get_any_firmware_update_progress WS cmd () 2022-06-23 20:13:37 -04:00
Raman Gupta
e53372f559
Add zwave_js/get_firmware_update_progress WS command ()
Add zwave_js/get_firmware_update_progress WS command
2022-06-19 15:33:58 -04:00
Raman Gupta
bb5a6a7104
Add zwave_js/get_firmware_update_capabilties WS command ()
* Add zwave_js/get_firmware_update_capabilties WS command

* Fix test
2022-06-19 14:50:47 -04:00
Raman Gupta
801ba6ff8e
Add target option to zwave_js firmware upload view () 2022-06-19 14:50:05 -04:00
Raman Gupta
9b93071720
Bump zwave-js-server-python to 0.38.0 ()
* Bump zwave-js-server-python to 0.38.0

* Fix test
2022-06-19 20:12:01 +02:00
Raman Gupta
7714183118
Add zwave_js/subscribe_node_status WS API cmd ()
* Add zwave_js/subscribe_node_status WS API cmd

* add ready to event
2022-06-19 10:09:26 -04:00
Raman Gupta
63b51f566d
Fix zwave_js add node schemas ()
* Fix zwave_js add node schemas

* Code cleanup

* Add test
2022-06-11 02:13:50 -04:00
Raman Gupta
394442e8a9
Use device_id for zwave_js/replace_failed_node command () 2022-06-01 06:42:07 +02:00
Raman Gupta
5031c3c8b4
Fix zwave_js custom trigger validation bug ()
* Fix zwave_js custom trigger validation bug

* update comments

* Switch to ValueError

* Switch to ValueError
2022-05-29 18:30:00 +02:00