puddly
23839a7f10
Wrap most ZHA exceptions in HomeAssistantError
( #98421 )
...
* Wrap attribute writes in a helper throwing `HomeAssistantError`
* Do not check for `Exception` instances, they are now propagated
* Write `cie_addr` synchronously
* Fix unnecessary `if` in `async_set_native_value`
* Fix unit tests
* Use `HomeAssistantError` in cover commands
* Revert writing `cie_addr` synchronously
* Disallow proxying of some cluster methods to fix unit test warnings
* Unit test cover failures to increase coverage
* Unit test missing climate device
* Unit test remaining cover commands
2023-08-28 17:24:12 -04:00
Marc Mueller
77f38e33e5
Import names from typing instead of typing_extensions [3.11] ( #97065 )
2023-07-22 17:03:44 -05:00
Franck Nijhof
43fe30f6ee
Use identify device class in ZHA identify button entity ( #95373 )
2023-06-27 17:42:13 +02:00
David F. Mulcahey
9c784ac622
Refactor ZHA ( #91476 )
...
* rename channel -> cluster handler
* remove refs to channels and create endpoint class
* remove remaining references to channels
* fix filter
* take in latest changes from #91403
* missed one
* missed a reference
2023-04-19 10:47:07 -04:00
TheJulianJES
47a2598b66
Add Aqara smoke sensor entities to ZHA ( #90159 )
...
* Add Aqara smoke sensor entities (WIP)
* Update smoke sensor entities (WIP)
* Drop two init attributes
* Move self-test button
* Remove self-test switch, add icons
* Add smoke sensor dbm entity
* Also add SMOKE device class to linkage alarm
Note: Enable "Linkage alarm" for this
2023-03-28 21:30:56 -04: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
Marc Mueller
a5d376069a
Add Self typing (2) [mypy 1.0] ( #87599 )
2023-02-06 23:23:52 -05:00
David F. Mulcahey
5329a679bb
Add Aqara c1 pet feeder support to ZHA ( #82340 )
...
* Add Aqara c1 pet feeder support to ZHA
* clean up
* cleanup
* state classes for daily measurements
* cleanups
* cleanups
* restore the refreshing of the inverted value cache
* cleanup
2022-11-21 18:03:17 -05:00
TheJulianJES
b4a203c3c7
Add friendly name to ZHA identify button ( #80446 )
2022-10-16 19:57:24 -04:00
TheJulianJES
3126762707
Add friendly name to ZHA config entities ( #79926 )
...
* Add friendly name to ZHA config entities
* Follow HA capitalization conventions
* Change from "Start-up level" to "Start-up current level"
* Remove siren select friendly names (temporarily)
* Change tests to expect new entity ids
* Re-add siren select friendly names
* Change siren tests to expect new entity ids
2022-10-09 09:11:42 -04:00
Marc Mueller
a3b2b5c328
Add zha typing [classmethods] ( #75472 )
2022-07-20 12:03:30 +02:00
David F. Mulcahey
12c49e1c94
Add Aqara FP1 configuration entities to ZHA ( #73027 )
...
* add multi state input
* config entities
* remove multistate input sensor used for testing
* mypy
2022-06-28 10:41:21 -04:00
epenet
6c83ed4c9d
Fix api, button and climate type hints in zha ( #73771 )
...
* Fix zha api type hints
* Fix zha button type hints
* Fix zha climate type hints
2022-06-21 21:02:08 -04:00
epenet
06e45893aa
Remove invalid type definitions in zha ( #73596 )
2022-06-20 11:28:53 +02:00
rforro
db815a7504
ZHA Add entities for Lidl water valve quirk ( #72307 )
...
* init
* added timer number entity
* added write attribute button entity
* fixed missed errors
* minor changes & fixed failing test
* removed icon
* unit and icons
2022-05-24 19:56:03 -04:00
David F. Mulcahey
1eb5316d89
Remove unnecessary update_before_add from ZHA ( #71010 )
...
* Additional streamlining for ZHA entity init
* fix tests
2022-04-28 20:57:26 +02:00
Dave T
62d49dcf98
Fix missing refactors of EntityCategory.XXX ( #66379 )
...
* Fix missing refactors of EntityCategory.XXX
* Fix entity_category refactor for homewizard
2022-02-12 16:22:21 +02:00
David F. Mulcahey
0062676f61
Add lqi and rssi sensors back to ZHA ( #62716 )
...
* update device list
* Only 1 identify button per device
* Add LQI and RSSI sensors to ZHA
* refactor entity creation filter
* update device list and update discover test
* fix reference
* code reduction
* walrus
* parens
* simplify
2021-12-24 16:48:02 -05:00
David F. Mulcahey
41531b528e
Add identify buttons to ZHA devices ( #61495 )
...
* Identify buttons
* clean up and add test
* use Platform
* update device list
* Only 1 identify button per device
* cleanup press until the need arises for the branch
* make imports relative
2021-12-23 17:52:42 -05:00