Commit graph

14249 commits

Author SHA1 Message Date
G Johansson
13577981f9
Local ip tests () 2022-11-14 12:20:45 -06:00
Ernst Klamer
af73afa2e2
Add support for HHCCJCY10 to xiaomi_ble () 2022-11-14 11:18:51 -06:00
J. Nick Koston
1ded3ac51e
Poll HomeKit Controller locks for state after lock operation () 2022-11-14 10:54:28 -06:00
Erik Montnemery
de313dcc3f
Improve config tests ()
* Improve config tests

* Fix stale docstring

* Use os.path.basename
2022-11-14 11:13:20 +01:00
Thomas Dietrich
a0b0e4088c
Replace quantiles by percentile characteristic for statistics component ()
* Remove quantiles characteristic

* Add percentile characteristic
2022-11-14 09:23:02 +01:00
Avi Miller
42652872f6
Restore color_temp handling for lifx.set_state ()
fixes undefined
2022-11-13 19:43:45 -06:00
G Johansson
48f6c9a486
Add tests DNS IP () 2022-11-13 18:23:14 -06:00
Christopher Bailey
ae436d46fc
Add options to UniFi Protect diagnostics () 2022-11-13 17:57:09 -06:00
J. Nick Koston
f584efa0c2
Move bluetooth remote scanner implementation into a base class () 2022-11-13 14:18:36 -06:00
Oliver Dippel
bd28483b43
Fix ibeacon source attribute not being updated ()
fixes undefined
2022-11-13 14:17:59 -06:00
Avi Miller
fe7ffe9519
Enable more customization of the LIFX pulse and color loop effects () 2022-11-13 10:59:47 -06:00
Christopher Bailey
bfd2eb50b2
Detect Early Access versions of UniFi Protect and Warn User () 2022-11-13 09:34:29 -06:00
G Johansson
50c686343e
Bump pysensibo to 1.0.21 ()
* pysensibo 1.0.21

* Add name to fixture
2022-11-13 16:05:54 +01:00
David F. Mulcahey
ebffe0f33b
Fix ZHA configuration APIs ()
* Fix ZHA configuration loading and saving issues

* add tests
2022-11-13 08:30:16 -05:00
corneyl
a848dc1155
Add service for adding products to a Picnic order ()
* Add Picnic services for searching products and adding products to the cart

* Improve the Picnic services implementation and add unit tests

* Fix pre-commit check issues

* Fix comments and example product name

* Remove search service, update add_product service schema

* Fix pylint suggestion

* Add more tests and removed unused code

* Remove code needed for the removed service, clean tests from obvious comments and add type hints

* Remove unused import

* Remove unnecessary comments and simplify getting the config entry id

Co-authored-by: Allen Porter <allen.porter@gmail.com>

* Don't use hass.data in tests, make device id mandatory for service

* Rewrite all service tests so using lru.cache is not needed

* Add test for uncovered line in _product_search()

* Require a config entry id as service parameter instead of device id

* Use explicit check in get_api_client() and raise HomeAssistantError

* Fix HomeAssistantError import, fix services tests

* Change HomeAssistantError to ValueError when config entry is not found

Co-authored-by: Allen Porter <allen.porter@gmail.com>
2022-11-12 20:15:45 -08:00
Ian Byrne
9be2704c11
Add option to include attachments from remote URL to Discord notifications ()
* Add option to include attachments from remote URL to Discord notifications

* Use aiohttp instead of requests for Discord Notify URL retrieval

* Refactor discord notifications code

* Remove unecessary images check in discord notifier
2022-11-12 16:11:06 -08:00
Ziv
b6c27585c7
Implemented RestoreEntity for Dynalite ()
* Implemented RestoreEntity
Merged commit conflict

* removed accidental change

* Update homeassistant/components/dynalite/dynalitebase.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* added tests for the state

* added tests for switch state

* moved to ATTR_x and STATE_x instead of strings
some fixes to test_cover

* moved blind to DEVICE_CLASS_BLIND

* used correct constant instead of deprecated

* Implemented RestoreEntity

* removed accidental change

* added tests for the state

* added tests for switch state

* moved to ATTR_x and STATE_x instead of strings
some fixes to test_cover

* fixed isort issue from merge

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-11-12 22:59:29 +01:00
On Freund
4bb1f4ec79
Add Armed binary sensor to local Risco () 2022-11-12 21:29:31 +01:00
uvjustin
ee910bd0e4
Refactor camera stream settings () 2022-11-13 01:22:59 +08:00
epenet
1baa5c12c0
Fix rest schema () 2022-11-11 10:08:26 -06:00
J. Nick Koston
78180b2ad8
Fix bluetooth adapters with missing firmware patch files not being discovered () 2022-11-10 14:14:37 -06:00
Allen Porter
e6d1a4a422
Revert google calendar back to old API for free/busy readers ()
* Revert google calendar back to old API for free/busy readers

* Update homeassistant/components/google/calendar.py

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

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-11-10 08:31:28 -08:00
Erik Montnemery
a2da1c7db5
Create repairs issue if an outdated currency code is configured in core store ()
* Create repairs issue if an outdated currency code is configured in core store

* Update homeassistant/config.py

Co-authored-by: Aarni Koskela <akx@iki.fi>

Co-authored-by: Aarni Koskela <akx@iki.fi>
2022-11-10 17:28:19 +01:00
Erik Montnemery
9bd676aff6
Improve automation reload ()
* Improve automation reload

* Small tweak

* Improve
2022-11-10 14:44:55 +01:00
Matthias Alphart
ee9231363f
Refactor KNX Config and Options flows () 2022-11-10 14:25:41 +01:00
Erik Montnemery
874ece195e
Include config entry id in response to WS API hardware/info () 2022-11-10 13:19:21 +01:00
Martin Hjelmare
9ded232522
Move zwave_js addon manager to hassio integration () 2022-11-10 10:09:52 +01:00
Allen Porter
f34de5072a
Bump gcal_sync to 4.0.1 to fix Google Calendar config flow ()
Bump gcal_sync to 4.0.1

This reverts test chagnes from PR  that were actually incorrect given
the calendar "get" API returns less information that the "CalendarList" api.
2022-11-09 19:34:31 -08:00
Erik Montnemery
7aa4654eb4
Improve docstring for sensor testcase () 2022-11-09 23:59:58 +01:00
Aaron Bach
adf84b0c62
Add async_get_active_reauth_flows helper for config entries ()
* Add `async_get_active_reauth_flows` helper for config entries

* Code review

* Code review + tests
2022-11-09 15:36:50 -07:00
Allen Porter
0941ed076c
Cleanup unnecessary google calendar test fixtures () 2022-11-09 20:59:00 +01:00
J. Nick Koston
f9ff23a2c8
Fix benign typo in test_config_entries.py ()
* Fix typo in test_config_entries.py

* touch ups

* Update tests/test_config_entries.py

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

Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-11-09 16:36:46 +01:00
uvjustin
84725f15a6
Use IntEnum for stream orientation ()
* Use IntEnum for stream orientation

* Rename enum values

* Add comments

* Fix import
2022-11-09 07:28:28 -08:00
Jc2k
9de4d7cba3
Fix homekit_controller climate entity not becoming active when changing modes () 2022-11-09 15:27:36 +00:00
Aarni Koskela
ec316e94ed
RuuviTag BLE sensor support () 2022-11-09 08:35:30 -06:00
Ernst Klamer
b72876d369
Add support for BTHome V2 to bthome ()
* Add BTHome v2 support

* Add new sensor types

* Add new sensor types
2022-11-09 15:31:58 +01:00
Vincent Knoop Pathuis
0cd9fe3288
Landis+Gyr Heat Meter code improvements () 2022-11-09 13:45:28 +01:00
Avishay
92b5721f80
Fix modbus hvac mode keys ()
Change the HVAC mode register conf constants
2022-11-09 11:09:21 +01:00
Jan Bouwhuis
12d76a8a4f
Address late review of config entry wait for states tests ()
* Late review on tests 

* Clean-up duplicate assignment
2022-11-08 22:14:17 +01:00
Aarni Koskela
6021cedb09
deconz: Use partition instead of split where possible ()
* deconz: Use partition instead of split where possible

With a smattering of code deduplication

Split out of 

* Update homeassistant/components/deconz/util.py

Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>

Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
2022-11-08 20:54:01 +01:00
Jan Bouwhuis
3cc9ecf1dc
Implement ConfigEntry async_wait_for_states ()
* Implement async_wait_for_states

* stale docstr, remove hints

* Assert return states for tests
2022-11-08 17:18:40 +01:00
J. Nick Koston
2cb58b8189
Fix off by one in HomeKit iid allocator () 2022-11-08 09:20:03 -06:00
Aaron Bach
45be2a260e
Add re-auth flow for OpenUV () 2022-11-08 07:41:09 -07:00
epenet
c585817e67
Adjust REST schema validation ()
fixes undefined
2022-11-08 11:18:58 +01:00
J. Nick Koston
53c1c2eb56
Fix homekit bridge iid allocations ()
fixes undefined
2022-11-08 11:15:16 +01:00
Steven Looman
274049cc8e
Fix ignored upnp discoveries not being matched when device changes its unique identifier ()
Fixes https://github.com/home-assistant/core/issues/78454
fixes undefined
2022-11-08 11:02:53 +01:00
Joakim Plate
fc0e0bf099
Support for direct modbus connection to nibe pumps ()
* Initial support for modbus

* Complete test coverage of config flow

* Bump to 1.1.0 with corrected numbers

* Handle missing mapping for reset-alarm

* Fixup type checks after library bump

* Adjust coil number

* Move word_swap to nibegw

* Adjust to 1.1.2 with fixes

* Add series property

* Add S series models

* Correct test for invalid host

* Apply suggestions from code review

Co-authored-by: J. Nick Koston <nick@koston.org>

* Move some things into library

* Adjust strings somewhat

* Correct black

* Correct test after validation change

Co-authored-by: J. Nick Koston <nick@koston.org>
2022-11-08 10:49:47 +01:00
Robert Svensson
23bed25e52
Remove old UniFi POE client implementation ()
Remove all references to POE client implementation
2022-11-08 07:48:54 +01:00
Robert Svensson
3444d2af1a
UniFi switch entity description ()
* Consolidate switch entities to one class

* Move turn on/off into UnifiSwitchEntity

* Add event subscription
Remove storing entity for everything but legacy poe switch

* Only one entity class

* Improve generics naming

* Rename loader to description

* Improve control_fn naming

* Move wrongfully placed method that should only react to dpi apps being emptied

* Improve different methods

* Minor renaming and sorting

* Mark callbacks properly
2022-11-08 07:38:31 +01:00
Erik Montnemery
c3d4a9cd99
Create repairs issue if an outdated currency code is configured ()
* Create repairs issue if an outdated currency code is configured

* Add script for updating list of currencies

* Use black for formatting

* Move currency codes to a separate file

* Address review comments
2022-11-08 07:21:09 +01:00