epenet
91e389c58d
Bump ruff to 0.0.253 ( #89211 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-03-06 16:16:31 +01:00
puddly
2a819f23c1
Disable the ZHA bellows UART thread when connecting to a TCP coordinator ( #88202 )
...
Disable the bellows UART thread when connecting to a TCP coordinator
2023-02-22 15:12:55 -05:00
Paulus Schoutsen
3a32d2bdcb
Add background tasks to config entries ( #88335 )
...
* Use a set for config entries task tracking
* Allow adding background tasks to config entries
* Add tests for config entry add tasks
* Update docstrings on core create task
* Migrate roon and august
* Use in more places
* Guard for None
2023-02-17 13:50:05 -05:00
Paulus Schoutsen
093f7d6bf1
Fix dangling task for zha ( #88302 )
2023-02-16 23:07:15 -05:00
Marc Mueller
4fbb14ecc7
Update mypy to 1.0.0 ( #87586 )
2023-02-07 02:31:14 +01:00
Franck Nijhof
fcb612cd6f
Collection of code styling tweaks ( #87344 )
2023-02-03 23:51:27 +01:00
Marc Mueller
00e5f23249
Update Union typing (zha) [Py310] ( #86453 )
2023-01-23 14:46:40 +01:00
puddly
757e4cf9e1
Retry ZHA config entry setup when ENETUNREACH
is caught ( #84615 )
...
* The config entry is not ready on `ENETUNREACH`
* Use new `TransientConnectionError` from zigpy
2023-01-07 10:46:33 +01:00
Franck Nijhof
d4f69a3652
String formatting and max line length - Part 7 ( #84532 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-12-27 11:18:56 +01:00
J. Nick Koston
611194ddd9
Fix zha LogEntry call ( #80737 )
...
The signature for LogEntry changed in #80645 to drop the
unused argument
2022-10-21 12:17:21 -05:00
puddly
2e8d598795
Allow ZHA startup to fail instead of raising ConfigEntryNotReady
( #77417 )
...
* Retry startup within ZHA instead of raising `ConfigEntryNotReady`
* Add unit tests
* Disable pylint warning for intentional broad except
2022-08-29 11:42:01 -04:00
David F. Mulcahey
bd3de4452b
Enhance logging for ZHA device trigger validation ( #76036 )
...
* Enhance logging for ZHA device trigger validation
* use IntegrationError
2022-08-01 11:43:07 -04:00
J. Nick Koston
08ff1b8986
Fix flapping system log test ( #75111 )
2022-07-14 11:05:52 +02:00
puddly
2986a2f01b
Identify the active ZHA coordinator device in API responses ( #74739 )
...
* Remove deprecated zigpy properties
* Create a `ZHADevice.is_active_coordinator` property
* Add `@puddly` to the ZHA code owners
* Create a `ZHAGateway.coordinator_ieee` shortcut property
2022-07-11 14:19:30 -04:00
David F. Mulcahey
edaafadde0
Remove ZHA device storage ( #74837 )
...
* Remove ZHA device storage
* remove storage file if it exists
2022-07-10 13:46:22 -04:00
puddly
abe44a100f
Bump all of ZHA's zigpy dependencies ( #73964 )
...
Bump zigpy and radio library versions
2022-06-28 16:02:16 -04:00
epenet
fb10853358
Fix mypy issues in zha core modules ( #74028 )
...
* Fix mypy issues in zha gateway, group and helpers
* Cleanup device
* Apply suggestion
* Raise ValueError
* Use hass.config.path
2022-06-28 08:50:16 +02:00
epenet
e0b362ef3b
Fix zha log message ( #73626 )
2022-06-17 12:13:16 +02:00
epenet
4e6887515b
Cleanup deprecated async_get_registry in zha ( #72080 )
2022-05-18 07:45:49 -04:00
David F. Mulcahey
f184f9e142
Fix ZHA cover initial state ( #71083 )
2022-04-29 15:35:53 -07:00
David F. Mulcahey
361119d5c1
Improve ZHA startup performance ( #70111 )
...
* Remove semaphores and background mains init
* additional logging
* correct cache usage and update tests
2022-04-27 08:24:26 -07:00
Marc Mueller
f0e2f964e8
Add zha typing [core.gateway] (3) ( #68685 )
2022-03-28 23:58:06 +02:00
Marc Mueller
53110f8cb7
Update pylint to 2.13.2 ( #68704 )
2022-03-27 16:08:24 +02:00
Marc Mueller
53245c6523
Update pylint to 2.13.0 ( #68656 )
2022-03-25 15:14:48 -07:00
Marc Mueller
931d5b5697
Add zha typing [core.gateway] (2) ( #68644 )
2022-03-25 17:44:49 +01:00
Marc Mueller
bdc92271f2
Add zha typing [core.gateway] (1) ( #68397 )
...
* Add zha typing [core.gateway] (1)
* Add temporary type ignores
* Fix pylint
2022-03-22 10:13:09 -04:00
Marc Mueller
487fa0a905
Use assignment expressions 20 ( #57969 )
2021-10-20 20:31:00 +02:00
puddly
e671ad41ec
Replace zigpy-cc with zigpy-znp ( #55828 )
...
* Replace zigpy-cc with zigpy-znp in a ZHA config migration
* Fix failing unit tests
2021-09-06 09:50:54 -04:00
Alexei Chetroi
cb1e0666c8
Pick right coordinator ( #55555 )
2021-09-01 22:54:35 -04:00
Ville Skyttä
470f2dd73f
Upgrade pyupgrade to 2.21.2, apply its changes ( #52987 )
2021-07-19 10:46:09 +02:00
puddly
c404a196c2
Allow creating ZHA groups with specific IDs ( #50781 )
2021-06-27 15:21:15 -04:00
astronaut
ceadb0cba0
Add gui config option consider device unavailable ( #51218 )
...
* Add gui config option consider device unavailable
* Update tests
2021-05-29 19:13:09 -04:00
David F. Mulcahey
fe80afdb86
Add support for custom configurations in ZHA ( #48423 )
...
* initial configuration options
* first crack at saving the data
* constants
* implement initial options
* make more dynamic
* fix unload and reload of the config entry
* update unload
2021-04-12 07:08:42 -04:00
Marc Mueller
8e2b5b36b5
Bump pyupgrade to 2.12.0 ( #48943 )
2021-04-09 09:58:27 -07:00
David F. Mulcahey
aa0292974a
support feedback for ZHA device reconfiguration ( #48447 )
2021-03-30 16:35:51 -04:00
Franck Nijhof
f4cc4a0896
Merge of nested IF-IF cases - X-Z ( #48373 )
2021-03-26 17:08:05 +01:00
Marc Mueller
dcca29ef68
Update typing 14 ( #48078 )
2021-03-18 15:08:35 +01:00
David F. Mulcahey
547fd7d352
fix exception on device removal ( #47803 )
2021-03-12 21:06:37 -05:00
Philip Allgaier
392c058d34
Ensure consistent spelling of "ID" ( #44585 )
2020-12-28 18:34:08 +01:00
David F. Mulcahey
54425ae0f3
Use the correct property for full init event ( #43745 )
2020-11-29 11:59:23 -05:00
David F. Mulcahey
a2e1efca33
Add additional events to enhance the ZHA device pairing experience ( #43729 )
...
* support better feedback in the device pairing UI
* update pairing events
2020-11-28 17:29:56 -05:00
Erik Montnemery
a5e5c5c7e6
Exclude disabled entities from async_entries_for_device ( #43665 )
2020-11-27 09:03:44 +01:00
Alexei Chetroi
e32669a2d9
Remove zigpy monkey patching ( #43456 )
...
* Use event handler for incoming messages from zigpy
* Bump up zha dependency
2020-11-20 20:02:52 -05:00
Alexei Chetroi
8868028dcd
Bump up ZHA dependencies ( #42679 )
...
* Bump up ZHA dependencies
* Fix tests because of zigpy request signature change
2020-11-01 11:05:55 -05:00
David F. Mulcahey
f2d21ea735
Update ZHA storage every 10 minutes ( #39710 )
2020-09-06 15:00:28 -04:00
Paulus Schoutsen
3dc79aa60a
Track entity sources ( #37258 )
...
Co-authored-by: David Mulcahey <david.mulcahey@me.com>
2020-08-19 14:57:38 +02:00
Alexei Chetroi
21acdbbbfd
Refactor ZHA Entity availability tracking ( #36645 )
...
* Refactor ZHA entity availability
ZHA entity availability tracks on underlying ZHA device availability.
* Update device status without signal.
* Update tests.
* Fix tests.
* Tests for restored devices availability.
* Guard against empty last_seen entry
Refactor device loading a bit.
2020-06-11 17:21:08 -04:00
Alexei Chetroi
1bdbe90d2a
Prevent double ZHA channel initialization ( #36554 )
...
* Preven double channel initialization.
* Use a setter for setting ZHA device availability.
2020-06-08 08:54:52 -04:00
Alexei Chetroi
85f129492a
Refactor ZHA config flow ( #35397 )
...
* Refactor ZHA config flow
Present more descriptive list of radio types when user has to pick one.
* Update docstring.
* Add some common models to EZSP radio.
* Add more model names
More model names, less english since radio types won't be translated.
2020-05-09 09:44:19 -04:00
Alexei Chetroi
c71a7b901f
New configuration flow for ZHA integration ( #35161 )
...
* Start gateway using new zigpy init.
Update config entry data import.
Use new zigpy startup.
Fix config entry import without zha config section.
Auto form Zigbee network.
* Migrate config entry.
* New ZHA config entry flow.
Use lightweight probe() method for ZHA config entry validation when
available. Failback to old behavior of setting up Zigpy app if radio lib
does not provide probing.
* Clean ZHA_GW_RADIO
* Don't import ZHA device settings.
* Update config flow tests.
* Filter out empty manufacturer.
* Replace port path with an by-id device name.
* Rebase cleanup
* Use correct mock.
* Make lint happy again
* Update tests/components/zha/test_config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update tests/components/zha/test_config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update tests/components/zha/test_config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Use executor pool for IO
* Address comments.
Use AsyncMock from tests.
* Use core interface to test config flow.
* Use core interface to test config_flow.
* Address comments. Use core interface.
* Update ZHA dependencies.
* Schema guard
* Use async_update_entry for migration.
* Don't allow schema extra keys.
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-05-06 12:23:53 +02:00