Raman Gupta
c51ed4b328
Redact secret zwave values in diagnostics ( #90389 )
...
* redact secret zwave values from diagnostics
* shhrink
* rename
2023-03-28 09:59:01 +02:00
Raman Gupta
c11a3881af
Bump zwave-js-server-python to 0.47.0 ( #90212 )
2023-03-27 12:25:04 +02:00
Raman Gupta
cbe85126cb
Introduce a delay between update entity calls ( #89737 )
...
* Introduce a delay between update entity calls
* Update homeassistant/components/zwave_js/update.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* move delay to constant and patch
* rename constant
* Switch to async_call_later
* Remove failing test
* Reimplement to solve task problem
* comment
* pass count directly so that value doesn't mutate before we store it
* lines
* Fix logic and tests
* Comments
* Readd missed coverage
* Add test for delays
* cleanup
* Fix async_added_to_hass logic
* flip conditional
* Store firmware info in extra data so we can restore it along with latest version
* Comment
* comment
* Add test for is_running check and fix bugs
* comment
* Add tests for various restore state scenarios
* move comment so it's less confusing
* improve typing
* consolidate into constant and remove unused one
* Update update.py
* update test to unknown state during partial restore
* fix elif check
* Fix type
* clean up test docstrings and function names
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-03-20 18:30:56 -04:00
epenet
a0f725dfcb
Add type hints to tests ( #89497 )
2023-03-10 12:06:50 +01:00
epenet
9762b684c2
Adjust entity registry access in tests (3) ( #88964 )
2023-03-01 16:04:40 +01:00
Marius Stedjan
9fc6700c5a
Add ZWaveDiscoverySchema for Merten 507801 ( #88342 )
...
* Add ZWaveDiscoverySchema for Merten 507801
* Add discovery tests to Merten 507801 z-wave device
* Add Z-Wave discovery schemas for Merten 507801 to disable endpoint 2 by default
* Add more discovery tests for Merten 507801 z-wave device
2023-03-01 00:47:47 -05:00
Raman Gupta
5739782877
Add support for firmware target in zwave_js FirmwareUploadView ( #88523 )
...
* Add support for firmware target in zwave_js FirmwareUploadView
fix
* Update tests/components/zwave_js/test_api.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update tests/components/zwave_js/test_api.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update tests/components/zwave_js/test_api.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update tests/components/zwave_js/test_api.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* fix types
* Switch back to using Any
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-02-23 13:24:55 -05:00
Raman Gupta
05a7df5629
Add controller support to `zwave_js/subscribe_firmware_update_status` ( #87348 )
2023-02-22 12:08:57 -05:00
Raman Gupta
cab8a59be4
Add dsk option to zwave_js/add_node WS command ( #87823 )
...
* Add dsk option to zwave_js/add_node WS command
* Bump zwave-js-server-python to 0.46.0 (#88520 )
* fix tests
2023-02-22 11:53:22 -05:00
Raman Gupta
1f9f6ab1f0
Update zwave_js FirmwareUploadView to support controller updates ( #87239 )
...
* Update zwave_js FirmwareUploadView to support controller updates
* Add coverage
* Change None check to assertion
2023-02-22 11:52:00 -05:00
Raman Gupta
5683d21931
Add new zwave_js WS command to parse DSK from QR code ( #87237 )
...
* Add new zwave_js WS command to parse DSK from QR code
* remove minimum character check since it is not needed in this case
2023-02-22 11:51:40 -05:00
Raman Gupta
8722f5b42b
Bump zwave-js-server-python to 0.46.0 ( #88520 )
2023-02-21 07:15:55 +01:00
epenet
1128041899
Add type hints to integration tests (zwave_js) ( #88311 )
2023-02-18 14:59:26 +01:00
Franck Nijhof
1e05697080
Enable Ruff B007 ( #88356 )
...
* Enable Ruff B007
* Adjust existing cases
2023-02-17 21:08:18 -05:00
Franck Nijhof
d3ed8de232
Update Ruff to v0.0.247 ( #88210 )
...
* Update Ruff to v0.0.247
* Fix new found violations
2023-02-15 16:46:03 -05:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ( #88165 )
...
* Enable Ruff PT006
* Adjust existing cases
* Fix tests
* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
Raman Gupta
8aa64c8008
Add `has_firmware_update_cc` bool to zwave_js/node_status cmd ( #87310 )
...
* Add `has_firmware_update_cc` bool to zwave_js/node_status cmd
* fix test
* Switch order of equality check
2023-02-10 00:49:09 -05:00
Erik Montnemery
cc564026fa
Move EntityCategory to homeassistant.const ( #87792 )
...
* Move EntityCategory to homeassistant.const
* Fix more imports
2023-02-09 20:15:37 +01:00
epenet
278050a73f
Add type hints to integration tests (t-z) ( #87707 )
2023-02-08 19:10:53 +01:00
epenet
4142f0d15d
Add return type to tests without arguments ( #87613 )
...
* Add return type to tests without arguments
* Black
* Cancel fixture amends
2023-02-07 14:20:06 +01:00
epenet
aa00114c2f
Add return type to async tests without arguments ( #87612 )
2023-02-07 10:26:56 +01:00
Raman Gupta
86cef27e1c
Rename zwave_js ws API command ( #87336 )
2023-02-03 15:26:20 -05:00
Raman Gupta
c715534821
Bump zwave-js-server-python to 0.45.0 ( #86771 )
2023-01-30 14:27:37 -05:00
Franck Nijhof
57cf11f067
Enable Ruff PT015 ( #86775 )
2023-01-27 11:10:29 +01:00
Franck Nijhof
e50a531cd9
Code styling tweaks to the tests - Part 2 ( #86662 )
...
Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
2023-01-26 01:23:53 +01:00
epenet
aa5b29c560
Adjust zwave_js diagnostics ( #85524 )
2023-01-09 14:33:09 +01:00
Martin Hjelmare
439b35c310
Fix Z-Wave JS sensor units and device classes ( #85129 )
...
fixes undefined
2023-01-04 19:47:10 +01:00
Martin Hjelmare
94b80db968
Handle not available add-on in hassio add-on manager ( #84943 )
...
* Handle not available add-on in hassio add-on manager
* Fix zwave_js tests
* Fix sky connect tests
* Fix matter tests
* Fix yellow tests
* Update hardware tests
2023-01-02 20:28:21 -05:00
Yuval Aboulafia
3149c52be1
Fix F602 key repeated ( #84531 )
2022-12-27 11:07:10 +01:00
Raman Gupta
41d5256533
Add via_device support to zwave_js ( #83219 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-12-06 22:56:33 -05:00
Raman Gupta
8d1a70391e
Improve zwave_js test coverage ( #83372 )
...
* 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 ( #83410 )
2022-12-06 12:41:09 -05:00
Raman Gupta
87e2bbbfab
Fix zwave_js_value_updated event ( #83358 )
...
* 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 ( #82170 )
...
* 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 ( #78723 )
...
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 ( #81354 )
2022-11-10 10:09:52 +01:00
Martin Hjelmare
a1a0284e81
Fix zwave_js port enumeration ( #81020 )
2022-10-26 10:12:30 -05:00
Martin Hjelmare
838691f22f
Refactor zwave_js add-on manager ( #80883 )
...
* 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 ( #79571 )
...
* 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 ( #80110 )
...
* 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 ( #80094 )
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 ( #79342 )
2022-10-04 10:40:49 -04:00
kpine
c040a7a152
Set zwave_js climate entity target temp attributes based on current mode ( #79575 )
...
* 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 ( #79520 )
...
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 ( #79020 )
2022-09-28 21:24:04 -04:00
epenet
0d696b84b2
Cleanup root component imports in tests ( #78893 )
2022-09-21 06:57:41 -10:00
epenet
0ac581a0b1
Cleanup EntityFeature in tests ( #78859 )
2022-09-21 10:48:55 +02:00
epenet
7bc2712142
Adjust root-import in tests ( #78761 )
...
* 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 ( #78670 )
...
* 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 ( #78658 )
...
* 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