Jon Caruana
d41facf750
Add devices to LiteJet ( #88406 )
2023-02-22 12:08:11 -06:00
Raman Gupta
05a7df5629
Add controller support to `zwave_js/subscribe_firmware_update_status` ( #87348 )
2023-02-22 12:08:57 -05:00
Erik Montnemery
1f34fa63ab
Always include platform in `config/entity_registry/list_for_display` ( #88601 )
...
Always include platform in config/entity_registry/list_for_display
2023-02-22 17:59:52 +01: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
Jc2k
f7bfdfefde
Diagnostics report for Thread networks ( #88541 )
...
* Initial diagnostics
* Include MLP of local OTBR
* Add dep on pyroute2
* Move pyroute2 onto executor
* More comments
* Read thread data direct from zeroconf cache
* Get neighbour cache for known BR's
* isort
* mypy
* Add diagnostic test
* rel import
* Fix pylint
* Restore coverage in discovery.py
2023-02-22 11:24:21 -05:00
Jan Bouwhuis
3afc39dbbf
Set default for `hass_config_yaml` fixture to "" ( #88608 )
...
Set default for hass_config_yaml fixture to ""
2023-02-22 17:18:11 +01:00
Michael Hansen
59f2b2ad51
Bump intents package version; hassil==1.0.5; home-assistant-intents==2023.2.22 ( #88605 )
...
* Bump hassil and intents versions
* Adjust tests to handle abbreviated responses
2023-02-22 09:36:42 -06:00
starkillerOG
f97b50f762
Add Reolink update entity ( #87865 )
2023-02-22 16:26:12 +01:00
Yann Le Moigne
2314d15761
Fix cover template: optimistic mode is ignored ( #87925 )
...
* Fix cover template: optimistic mode is ignored (#84334 )
* Fix invalid check in is_closed (make test pass)
* Add test for non optimistic cover
* Update homeassistant/components/template/cover.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Update test_cover.py
* Fix format
* Fix tests
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-02-22 15:54:18 +01:00
Albin Médoc
f40b712664
Fix 500 error when getting calendar events ( #88276 )
...
* Fix 500 error when getting calendar event
* Add test for calendar dates in wrong order
* Update calendar tests to use f strings
2023-02-22 15:33:43 +01:00
epenet
3f11fbfda8
Use load_json_object in ecobee ( #88584 )
...
* Use load_json_object in ecobee
* Adjust tests
2023-02-22 13:58:07 +01:00
epenet
42d90538e4
Use load_json_object in ps4 ( #88590 )
2023-02-22 13:55:44 +01:00
epenet
1278fe1f81
Use load_json_object in nanoleaf ( #88592 )
...
* Use load_json_object in nanoleaf
* pretty
* prettier
2023-02-22 13:54:02 +01:00
epenet
79adfbc862
Use load_json_object in tellduslive ( #88591 )
2023-02-22 13:53:00 +01:00
Martin Hjelmare
33b16d20b1
Clean up tradfri import flow ( #88588 )
2023-02-22 10:53:48 +01:00
Chris Xiao
93c681ae58
Add options flow for met ( #88525 )
...
* implement options flow for met
* add tests for met options flow
* fix met options flow tests
* fix met options flow when tracking home
2023-02-22 10:18:58 +01:00
epenet
aa20c902db
Add typed helpers and improve type hints in util/json ( #88534 )
...
* Add type hints to load_json
* Adjust ios
* Adjust nest
* Add use of load_json_array
* Add tests
* Adjust test patch
* Add test_load_json_os_error
2023-02-22 10:09:28 +01:00
J. Nick Koston
e38836b6e1
Update async_matching_config_entries to use async_get_integrations ( #88527 )
...
* Update async_matching_config_entries to use async_get_integrations
* Update homeassistant/components/config/config_entries.py
* Update homeassistant/components/config/config_entries.py
2023-02-21 21:17:18 -05:00
J. Nick Koston
5bc0636905
Replace fire_coroutine_threadsafe with asyncio.run_coroutine_threadsafe ( #88572 )
...
fire_coroutine_threadsafe did not hold a reference to the asyncio
task which meant the task had the risk of being prematurely
garbage collected
2023-02-21 21:16:18 -05:00
Maciej Bieniek
a54e523731
Bump `nettigo-air-monitor` to version 2.1.0 ( #88569 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-02-21 17:41:46 -06:00
Erik Montnemery
356c316b39
Fix stray prints seen inbetween tests ( #88570 )
2023-02-21 17:19:38 -06:00
J. Nick Koston
93e37243f6
Fix logbook test that failed to exclude EVENT_HOMEASSISTANT_FINAL_WRITE ( #88568 )
2023-02-21 16:22:44 -06:00
Franck Nijhof
3501a9788f
Update entity registry snapshot serializer ( #88566 )
...
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-02-21 22:37:13 +01:00
Jan Bouwhuis
3f79155df6
Remove deprecated callback support for MQTT subscribe ( #88543 )
...
* Remove deprecated callback support and fix tests
* Add note with removal instruction
2023-02-21 22:21:00 +01:00
J. Nick Koston
e6c792deed
Add missing kelvin attributes to light recorder platform ( #88561 )
2023-02-21 14:23:53 -06:00
J. Nick Koston
ff93b7a01c
Restore vulcan integration ( #88556 )
2023-02-21 20:56:36 +01:00
Erik Montnemery
0c4c95394e
Add WS command config/entity_registry/list_for_display ( #87787 )
...
* Add WS command config/entity_registry/list_for_display
* Make more keys in the display dict optional
* Move disabled_by check to ws command handler
* Hide hidden_by if not hidden
* Use send_json_auto_id in the new test
* Don't include entities which have no data needed for display
* Include platform for entries with translation_key
2023-02-21 20:40:39 +01:00
Teemu R
a93b4e7197
Use device-native kelvins for tplink color temperature ( #85646 )
2023-02-21 12:52:50 -06:00
Jc2k
ce1ef1d720
Activate thread integration if thread border routers are present ( #88551 )
2023-02-21 16:22:00 +00:00
Jorgen Evens
4e32b65694
Improve pjlink reliability ( #80745 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-02-21 16:48:53 +01:00
epenet
a51cc75f03
Add type hints to core tests (part 2) ( #88492 )
2023-02-21 09:27:13 +01:00
epenet
a102883eff
Add type hints to integration tests (part 2) ( #88493 )
2023-02-21 09:25:05 +01:00
Jan Bouwhuis
ebb450c946
Default `hass_config` to contain an empty config ( #88515 )
...
* Default hass_config to {}
* Correct type hint
2023-02-21 08:48:44 +01:00
Raman Gupta
8722f5b42b
Bump zwave-js-server-python to 0.46.0 ( #88520 )
2023-02-21 07:15:55 +01:00
Luke
84763c793d
Support Ecobee climate Aux Heat on/off ( #86100 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-02-20 17:56:03 -06:00
J. Nick Koston
35adb2f7e8
Remove previously deprecated Detected Object from unifiprotect ( #85656 )
2023-02-20 22:14:01 +01:00
Carlos Gustavo Sarmiento
fa2e7aa592
Add `state_class = MEASUREMENT` to Derivative sensor ( #88408 )
...
* Add `state_class = MEASUREMENT` to Derivative sensor
One line change per title.
* Update sensor.py
* Update tests for Derivative Sensor
2023-02-20 21:57:58 +01:00
J. Nick Koston
ecf87ae979
Improve performance of websocket_api dispatch ( #88496 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2023-02-20 19:51:34 +01:00
Erik Montnemery
cc4a179ca8
Support templating for in state conditions ( #88411 )
2023-02-20 18:57:00 +01:00
emanuelst
0b81c836ef
Update HomeKit VOC mappings ( #87663 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-02-20 11:56:41 -06:00
Michael Hansen
5bf3a0b7af
Load custom sentences for language variations (en-us, etc.) ( #88498 )
2023-02-20 12:28:04 -05:00
Maciej Bieniek
7119a0f811
Use `suggested_display_precision` instead of rounding in Shelly sensor platform ( #87084 )
2023-02-20 10:20:52 -06:00
Jan Bouwhuis
4f6a25b470
Allow parameterizing YAML config in tests ( #87981 )
...
* Add fixture to parameterize yaml config
* Apply to more tests
* Re-add @fixture label
* Add fixtures to patch yaml content and targets
* Typo
* Improve docstr
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update references to mock_yaml_configuration
* Apply new fixtures
* Apply to check_config tests
* Follow up comments
* Rename fixtures, update docstr
* Split paths
* Patch load_yaml_config_file instead
* sort
* Fix tests
* improve docst
* Rename fixtures
* sorting
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Improve docstr
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Improve docstr
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Improve docstr
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Improve docstr
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Improve docstr
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Improve docstr
Co-authored-by: Erik Montnemery <erik@montnemery.com>
---------
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-02-20 16:57:12 +01:00
Matthias Alphart
6a0ea09f29
Upload KNX Keyfile from Config/Options Flow directly ( #88097 )
...
* Manage KNX Keyfile from UI
* migrate config entry to use new keyfile
* Revert "migrate config entry to use new keyfile"
use same config style as before instead of entry version migration
* clean up uploaded file when integration is removed
* change default filename
* revert to previous step name
* remove empty directory on unload
2023-02-20 14:48:56 +01:00
J. Nick Koston
9876dd804e
Exclude event_id and event_score from being recorded in unifiprotect ( #88387 )
2023-02-20 14:09:56 +01:00
Franck Nijhof
36e59fc322
Cleanups in WLED tests ( #88480 )
2023-02-20 13:00:02 +01:00
epenet
ec5c3d6330
Add type hints to integration tests ( #88476 )
2023-02-20 11:43:51 +01:00
epenet
5f25b71df7
Add type hints to core tests ( #88478 )
2023-02-20 11:42:56 +01:00
Yuxin Wang
ba2e80f741
Add more tests for APC UPS Daemon integration ( #85967 )
...
* Add tests for init.
* Add more test init.
* Fix test init side_effect.
* Add test sensor.
* Fix sensor test file name.
* Fix sensor test.
* Add binary sensor test.
* Fix comments and styling.
* Remove apcupsd from omissions in coveragerc.
* Add a test case for binary sensor when STATFLAG is not available.
* Complete type annotations for test files.
* Revert "Remove apcupsd from omissions in coveragerc."
This reverts commit 66b05fcb8829619a771a650a3d70174089e15d91.
2023-02-20 09:51:01 +01:00
jan iversen
b11539fb04
Move connect method into a task ( #88452 )
...
Move connect() into a task.
2023-02-20 08:32:47 +01:00
epenet
488d78571e
Add missing device class triggers ( #88316 )
...
* Add constant tests for sensor device classes
* Add missing strings
* Adjust tests
* Add missing conditions
* Add missing trigger
* Cleanup
2023-02-20 08:30:51 +01:00
Paulus Schoutsen
69e42d0e4d
Fix Vulcan break CI ( #88469 )
...
* Fix Vulcan break CI
* Remove unrelated change
* Flake8 ignore
2023-02-19 23:49:42 -05:00
J. Nick Koston
c2b770bcb9
Load pending state attributes and event data ids at startup ( #88444 )
...
* Load pending state attributes and event data ids at startup
Since we queue all events to be processed after startup
we can have a thundering herd of queries to prime the
LRUs of event data and state attributes ids. Since we
know we are about to process a chunk of events we can
fetch all the ids in two queries
* lru
* fix hang
* Fix recorder LRU being destroyed if event session is reopened
We would clear the LRU in _close_event_session but
it would never get replaced with an LRU again so
it would leak memory if the event session is reopened
* Fix recorder LRU being destroyed if event session is reopened
We would clear the LRU in _close_event_session but
it would never get replaced with an LRU again so
it would leak memory if the event session is reopened
* cleanup
2023-02-19 21:26:38 -05:00
Franck Nijhof
c4f92f5ad4
Cleanup use of test fixtures in LaMetric tests ( #88453 )
...
Cleanup use of test fixture in LaMetric tests
2023-02-19 21:15:07 -05:00
Franck Nijhof
172d505314
Refactor Whois tests ( #88456 )
2023-02-19 21:14:10 -05:00
Franck Nijhof
037b3ebd26
Refactor EnergyZero tests ( #88458 )
2023-02-19 21:11:05 -05:00
J. Nick Koston
3533e77ec9
Fix using MariaDB slow range select workaround with Postgresql ( #88459 )
...
* Mark PostgreSQL range select as fast
Currently we were using the slow range select workaround for
PostgreSQL that was original developed for MariaDB but
its actually slower on PostgreSQ
fixes #83253
* Mark PostgreSQL range select as fast
Currently we were using the slow range select workaround for
PostgreSQL that was original developed for MariaDB but
its actually slower on PostgreSQ
fixes #83253
2023-02-19 21:08:43 -05:00
Franck Nijhof
68e1aaa0be
Refactor Elgato tests ( #88376 )
2023-02-19 20:14:18 +01:00
J. Nick Koston
a9731a7b26
Make the recorder LRU adjustment threadsafe ( #88443 )
2023-02-19 19:30:08 +01:00
J. Nick Koston
9df00bd285
Adjust recorder LRU cache to align with the number of entities ( #88350 )
...
* Adjust size of recorder LRU based on number of entities
If there are a large number of entities the cache would
get thrashed as there were more state attributes being
recorded than the size of the cache. This meant we had
to go back to the database to do lookups frequently when
an instance has more than 2048 entities that change
frequently
* add a test
* do not actually record 4096 states
* patch target
* patch target
2023-02-19 00:02:36 -05:00
Teemu R
1d928f05fa
Update python-kasa to 0.5.1 ( #88416 )
2023-02-18 22:39:08 -06:00
Franck Nijhof
6cbad61572
Enable Ruff RUF006; Hard reference to asyncio.create_task return value ( #88216 )
...
* Enable Ruff RUF006
* Fix test
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-02-18 23:05:44 -05:00
J. Nick Koston
3ca9f3c0d5
Only build the recorder SupportedDialect enum once ( #88402 )
...
Every call to dialect_name was creating a new enum object
in the recorder
2023-02-18 20:21:14 -05:00
Erik Montnemery
06213ee595
Drop sqlachemy_utils workaround ( #88393 )
2023-02-18 09:18:23 -06:00
Tom Harris
d84fde8c54
Insteon scenes ( #87803 )
...
* Add Insteon scene support
* Bump to pyinsteon 1.3.1
* Add tests
* Bump Insteon Panel to 0.3.1
* Change docstring
2023-02-18 15:52:49 +01:00
epenet
1128041899
Add type hints to integration tests (zwave_js) ( #88311 )
2023-02-18 14:59:26 +01:00
Franck Nijhof
31061b9f35
Fix snapshots testing repr 0 value IntFlags ( #88379 )
2023-02-18 07:38:19 -06:00
Erik Montnemery
83e5bf7ae8
Use entity_sources to determine integration in recorder platforms ( #88382 )
2023-02-18 07:21:41 -06:00
Guido Schmitz
1279868bf5
Bump devolo_plc_api to 1.2.0 ( #88348 )
2023-02-18 13:34:26 +01:00
Jon Caruana
e5e551f4ea
Code quality/test improvement to available attributes of LiteJet ( #86683 )
...
* PR feedback, and add related tests.
* PR feedback.
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-02-18 12:43:32 +01:00
J. Nick Koston
289bab6f87
Make recorder platform attribute exclude integration aware ( #88357 )
2023-02-18 10:08:59 +01:00
Franck Nijhof
1e05697080
Enable Ruff B007 ( #88356 )
...
* Enable Ruff B007
* Adjust existing cases
2023-02-17 21:08:18 -05:00
modrisb
9fd35d53e7
Change core return code processing ( #88326 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-02-17 20:56:02 -05:00
Franck Nijhof
6891eb7ed1
Add support for snapshot testing ( #88323 )
...
* Add support for snapshot testing
* Use snapshots in Elgato diagnostics test
* Use snapshots in Elgato sensor test
* Fix flake8 warning
* Slightly improve serialized output
* Remove snapshot naming in elgato sensor tests
* Improve snapshoting of via_device_id in device registry item
* Update pylint typehints plugin for snapshot fixture typing
* Use snapshots in Elgato configflow test
* Use snapshots in Bluetooth repair issue tests
2023-02-17 16:35:55 -05:00
Michael Hansen
325674ec44
Only expose default cloud domains in Assist default agent ( #88274 )
...
* Only expose default cloud domains in default agent
* Copy exposed domain list to conversation
* Implement requested changes
* Add test for exposed devices/areas
2023-02-17 16:19:22 -05:00
J. Nick Koston
331102e592
Dismiss discoveries when the underlying device disappears ( #88340 )
...
* Implement discovery removals
Bluetooth, HomeKit, SSDP, and Zeroconf now implement
dismissing discoveries when the underlying discovered
device disappears
* cover
* add zeroconf test
* cover
* cover bluetooth
* fix rediscover
2023-02-17 15:51:19 -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
epenet
a16e298599
Adjust json imports in tests ( #88248 )
2023-02-17 19:13:48 +01:00
epenet
7427d4f323
Add type hints to integration tests (zha) ( #88309 )
2023-02-17 18:54:26 +01:00
epenet
185cd61cbd
Add type hints to integration tests (recorder) ( #88313 )
2023-02-17 18:50:09 +01:00
epenet
0a80ac19bc
Add type hints to integration tests (part 18) ( #88174 )
2023-02-17 18:45:48 +01:00
Paulus Schoutsen
f465561536
Fix dangling task for cast ( #88285 )
2023-02-17 18:43:40 +01:00
dcmeglio
da046f93f4
Add additional characteristics for Airversa Homekit Air Purifiers ( #85660 )
2023-02-17 15:55:31 +00:00
epenet
5b80b1f55a
Add type hints to integration tests (part 25) ( #88308 )
2023-02-17 16:52:28 +01:00
epenet
9a5f88f55f
Add type hints to integration tests (part 23) ( #88235 )
2023-02-17 16:40:46 +01:00
epenet
aa50096a31
Add type hints to integration tests (part 24) ( #88307 )
2023-02-17 16:34:53 +01:00
Erik Montnemery
9989a4787b
Fix recorder platform tests ( #88330 )
2023-02-17 08:22:15 -06:00
Erik Montnemery
273d289e03
Fix sleepiq test to not contact the API ( #88315 )
...
* Fix sleepiq test to not contact the API
* Add an autosue fixture for config entry setup
2023-02-17 12:32:27 +01:00
J. Nick Koston
b9f29c27ab
Cleanup stale recorder code ( #88275 )
...
- Removes dead commit function
- Small cleanup to debug handling in execute
2023-02-16 23:12:11 -05:00
Paulus Schoutsen
6cab27f378
Add support for background tasks in HA ( #88265 )
...
* Add support for background tasks
* make name mandatory for background tasks
* Update docstring
* async_create_background_task
* Grammar
2023-02-16 20:39:29 -05:00
J. Nick Koston
2ce631733a
Switch ld2410_ble to use no_devices_found ( #88270 )
2023-02-16 22:52:57 +01:00
J. Nick Koston
a059cd7f80
Switch keymitt_ble to use no_devices_found ( #88271 )
...
* Switch keymitt_ble to use no_devices_found
* Switch keymitt_ble to use no_devices_found
2023-02-16 22:52:29 +01:00
J. Nick Koston
06b1bf9c92
Switch led_ble to use no_devices_found ( #88269 )
2023-02-16 22:51:57 +01:00
J. Nick Koston
ffa7cac38e
Switch switchbot to use no_devices_found ( #88268 )
2023-02-16 22:51:27 +01:00
J. Nick Koston
b2a1df19a0
Switch yalexs_ble to use no_devices_found ( #88267 )
2023-02-16 22:50:49 +01:00
epenet
3873484849
Refactor json tests to align with new code ( #88247 )
...
* Refactor json tests to align with new code
* Use tmp_path
2023-02-16 21:34:19 +01:00
Michael Hansen
dc30210237
Use blocking in intent service calls and verify results ( #88035 )
...
* Use blocking in service calls and verify result
* Block for 2 seconds and update states after
* Small timeout in service call to allow exceptions
* Move sun test
2023-02-16 14:01:41 -05:00
epenet
8c821c8969
Add JSON support to load_fixture ( #88076 )
...
* Add JSON support to load_fixture
* More tests
* Remove lru_cache on load_json
2023-02-16 19:40:47 +01:00