Nathan Spencer
6594d022ba
Bump pylitterbot to 2023.4.11 ( #114918 )
2024-04-06 12:16:00 +02:00
Sid
0d66d298ec
Enable Ruff RET504 ( #114528 )
...
* Enable Ruff RET504
* fix test
* Use noqa instead of cast
* fix sonos RET504
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-04-06 11:07:37 +02:00
Claudio Ruggeri - CR-Tech
a28731c294
Add Swing Mode Feature to Modbus integration ( #113710 )
2024-04-06 11:01:44 +02:00
J. Nick Koston
657bc969a3
Improve performance of system_log traceback handling ( #114992 )
2024-04-05 16:47:17 -10:00
J. Nick Koston
fb98a6f026
Make run_immediately the default for core EventBus listeners ( #113752 )
...
* DNM: Make run_immediately the default for listeners
This is a test to see how much progress we have made twords this goal
https://github.com/home-assistant/core/pull/113727#issuecomment-2004587947
* fix shutdown
* Revert "fix shutdown"
This reverts commit a8969d7db9
.
* set false since it break utility meter tests
* one more
* fix rfxtrx test
* test needs to be explict now
* fix matrix
* fail sooner
2024-04-05 22:14:20 -04:00
Brent Petit
c9ce848b4b
Add current_humidity to Ecobee humidifier ( #114753 )
...
* Ecobee: add current_humidity to humidifier
* Ecobee: Add test for current_humidity property
* Update current_humidity handling in climate and
humidifier entity to support the ecobee API
not returning actualHumidity, which is an optional
value.
Also updated tests to add a thermostat which
covers a non-populated humidity. In passing,
set up the new test thermostat to cover a missing
condition where the code doens't recognize the
ecobee model number. This gets ecobee humidifier
test coverage to 100%
2024-04-05 21:54:40 +02:00
Joost Lekkerkerker
0214511b38
Make config flow imports consistent ( #114962 )
...
* Make config flow imports consistent
* Fix
2024-04-05 21:38:11 +02:00
epenet
9204ccfa17
Use is in ConfigEntryState enum comparison in tests (N-Z) ( #114926 )
2024-04-05 17:37:00 +02:00
Ashot Tonoyan
f2c091fe0c
Include serial number in HomeKit device info ( #114688 )
...
Very useful when adding a hub that has many identical devices already paired
2024-04-05 17:32:23 +02:00
epenet
0b01326f9f
Use is in ConfigEntryState enum comparison in tests (A-M) ( #114925 )
2024-04-05 17:16:55 +02:00
Joost Lekkerkerker
69f8de2c59
Create right import issues in Downloader ( #114922 )
...
* Create right import issues in Downloader
* Create right import issues in Downloader
* Create right import issues in Downloader
* Create right import issues in Downloader
* Fix
* Fix
* Fix
* Fix
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Fix
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-04-05 12:32:09 +02:00
Joost Lekkerkerker
772d9f754a
Fix Downloader YAML import ( #114844 )
2024-04-05 11:32:59 +02:00
epenet
24f83c5890
Use is in FlowResultType enum comparison in tests ( #114917 )
...
* Use is in FlowResultType enum comparison in tests
* Adjust auth
* Adjust systemmonitor
* Once more
* Add comment
2024-04-05 10:40:14 +02:00
Lex Li
1f37774352
Fix type cast in snmp ( #114795 )
2024-04-05 08:41:15 +02:00
J. Nick Koston
5447a1a015
Ensure all tables have the default table args in the db_schema ( #114895 )
2024-04-05 08:22:00 +02:00
J. Nick Koston
d321906342
Always run keyed event trackers immediately ( #114709 )
2024-04-04 15:30:01 -10:00
J. Nick Koston
78920e1d71
Reduce august polling frequency ( #114904 )
...
Co-authored-by: TheJulianJES <TheJulianJES@users.noreply.github.com>
2024-04-04 15:28:36 -10:00
Marc Mueller
3c5089bc3f
Update import for EventStateChangedData [a-h] ( #114899 )
2024-04-04 11:48:36 -10:00
J. Nick Koston
e0e54ab9d3
Migrate more sonos tasks to use eager_start ( #114697 )
2024-04-04 11:43:15 -10:00
Pete Sage
95ef087fa8
Fix Sonos Tests failing intermittently on CI ( #114873 )
2024-04-04 10:34:23 -10:00
Michael Hansen
1c2499b03a
Add "conversation" key to translations ( #114887 )
...
* Use translated trigger response
* Use conversation key instead
2024-04-04 14:45:27 -05:00
J. Nick Koston
aedfd6c983
Add index for floor/label to the area registry ( #114777 )
2024-04-03 21:04:26 -10:00
J. Nick Koston
0c3ccabfb1
Speed up logger setup ( #114610 )
...
* Speed up logger setup
Preload core.logger and avoid saving it
until after startup
* add comment about 180s
* Adjust grammar
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-04-04 08:35:44 +02:00
J. Nick Koston
e86fec310b
Improve performance of extracting entities by label ( #114720 )
2024-04-03 10:24:44 -10:00
Chris Bräucker
51a3e79048
Add wake on LAN via Fritz!Box for tracked devices ( #106778 )
2024-04-03 18:37:20 +02:00
Lenn
e870d420a6
Rename Motionblinds BLE integration to Motionblinds Bluetooth ( #114584 )
2024-04-03 12:11:46 +02:00
Robert Resch
74d8c6cce4
Fix synology_dsm test side effects ( #114722 )
2024-04-03 11:11:56 +02:00
Joost Lekkerkerker
f3ba713289
Use FlowResultType enum in config flow tests N-Z ( #114682 )
...
Use FlowResultType enum in config flow tests
2024-04-03 09:53:20 +02:00
Joost Lekkerkerker
b9281327c4
Use FlowResultType enum in config flow tests A-M ( #114681 )
2024-04-03 09:21:17 +02:00
Erik Montnemery
d058615961
Add service homeworks.send_command ( #114059 )
...
* Add service homeworks.send_command
* Translate exception
2024-04-03 09:10:10 +02:00
Pete Sage
f26a7843c6
Fix Sonos play imported playlists ( #113934 )
2024-04-03 00:10:15 +02:00
Joost Lekkerkerker
9b41e3d124
Use is in enum comparison in config flow tests A-E ( #114669 )
2024-04-02 11:22:05 -10:00
Joost Lekkerkerker
ee66f6ec8c
Use is in enum comparison in config flow tests P-T ( #114675 )
2024-04-02 11:21:50 -10:00
Joost Lekkerkerker
5d500cb74b
Use is in enum comparison in config flow tests K-O ( #114672 )
2024-04-02 11:21:42 -10:00
Dos Moonen
3875533f95
Bump solax to 3.1.0 ( #114617 )
...
0.3.2 was succeeded by 0.3.4.
0.3.3 was yanked
0.3.4 was succeeded by 3.0.5.
3.0.5 is succeeded by 3.1.0.
2024-04-02 23:16:39 +02:00
Joost Lekkerkerker
2ef0521d3d
Use is in enum comparison in config flow tests U-Z ( #114677 )
...
* Use right enum expression U-Z
* Fix
2024-04-02 23:09:56 +02:00
Jan Bouwhuis
83b56ab005
Add IMAP seen, move and delete service ( #114501 )
...
* Add seen, move and delete IMAP services
* Add entry_id to the imap_content event data
* Use config validation library
* Add tests
* Add logging
* Typo in docstr
* Add guard
2024-04-02 23:05:05 +02:00
Joost Lekkerkerker
906d3198e3
Use is in enum comparison in config flow tests F-J ( #114670 )
...
* Use right enum expression F-J
* Fix
2024-04-02 23:01:37 +02:00
Phil Bruckner
ea2bb24484
Remove old device tracker device cleanup code & test ( #114668 )
2024-04-02 15:23:59 -05:00
Joost Lekkerkerker
2175cd6039
Add tests for Roomba Options flow ( #114666 )
...
* Add tests for Roomba Options flow
* Fix
2024-04-02 21:49:53 +02:00
Aidan Timson
17f0002549
Azure DevOps integration tests ( #114577 )
...
* Add tests to azure devops
* Remove Azure DevOps files from coverage
* Add assertion for entity registration in test_sensors()
* Remove unnecessary code in test_sensor.py
* Refactor test_sensors function
* Fix
* Test unique id
* Refactor
* Refactor reauth_flow test in azure_devops module
* Suggested changes, batched
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Changes
* Use snapshot
* Remove redundant entry fetch
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-04-02 21:23:55 +02:00
Robert Resch
f85511255c
Fix Rpi_power test race condition ( #114662 )
2024-04-02 21:19:43 +03:00
jayme-github
850dac0655
Don't overwrite target temperature by setting hvac mode in AVM Fritz!SmartHome ( #112119 )
2024-04-02 20:14:02 +02:00
atlflyer
ef7836be73
Add icon to command_line cover config ( #114645 )
...
* Add icon to command_line cover config
* Remove unwanted #noqa tag
* Remove redundancy from new test name
* Apply requested changes
2024-04-02 20:59:57 +03:00
Robert Resch
17625dc74d
Fix Google translate TTS test race condition ( #114656 )
2024-04-02 18:52:41 +02:00
Paulus Schoutsen
52bd3efad9
Clean up unnecessary setup calls in tests ( #114644 )
2024-04-02 17:30:41 +02:00
Joost Lekkerkerker
0b7d9d6c44
Remove YAML configuration from Withings ( #114626 )
...
* Remove YAML configuration from Withings
* Remove YAML configuration from Withings
* Remove YAML configuration from Withings
2024-04-02 13:36:44 +02:00
Brett Adams
f36c37a3b7
Fix battery heater in Tessie ( #114568 )
2024-04-02 12:23:08 +02:00
Jan Bouwhuis
acf2f855fe
Raise ServiceValidationError on number out of range exception ( #114589 )
2024-04-02 12:22:00 +02:00
Joakim Sørensen
a1ae4ec23d
Add sensor entities to Traccar Server ( #111374 )
2024-04-02 12:11:28 +02:00
Joost Lekkerkerker
21c7cc3250
Bump roombapy to 1.8.1 ( #114478 )
...
* Bump roombapy to 1.7.0
* Bump
* Bump
* Fix
2024-04-02 11:15:52 +02:00
Robert Resch
67c334f842
Fix ruff issue in sonos ( #114616 )
2024-04-02 10:30:01 +02:00
Maciej Bieniek
c8f282c8bc
Improve Shelly RPC device update progress ( #114566 )
...
Co-authored-by: Shay Levy <levyshay1@gmail.com>
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-04-02 10:15:58 +02:00
Pete Sage
31cd41adb8
Display sonos album title with URL encoding ( #113693 )
...
* unescape the title
When extracting the title from the item_id, it needs to be unescaped.
* sort imports
2024-04-02 10:11:45 +02:00
mkmer
078535e1d6
Add diagnostic platform to Whirlpool ( #114578 )
...
* Add diagnostic platform and tests
* lowercase variable
* Correc doc string
2024-04-02 09:41:40 +02:00
Erik Montnemery
0030c97f59
Tweak integration sensor ( #114384 )
...
* Tweak integration sensor
* Improve tests
2024-04-02 09:19:25 +02:00
Jan-Philipp Benecke
c2ffed9b2d
Use switch entities instead of toggle entities in tests ( #114585 )
2024-04-02 08:25:28 +02:00
J. Nick Koston
ce9d4c8683
Fix flakey cast discovery stop test ( #114605 )
...
https://github.com/home-assistant/core/actions/runs/8515215623/job/23322322954?pr=114602
2024-04-01 21:34:54 -04:00
Paulus Schoutsen
d2e4f5f36e
Add conversation entity ( #114518 )
...
* Default agent as entity
* Migrate constant to point at new value
* Fix tests
* Fix more tests
* Move assist pipeline back to cloud after dependenceis
2024-04-01 21:34:25 -04:00
Martin Hjelmare
b1af590eed
Fix reolink media source data access ( #114593 )
...
* Add test
* Fix reolink media source data access
2024-04-02 00:14:13 +02:00
Sid
304ed8bf3d
Unignore Ruff PLC in tests ( #114572 )
2024-04-01 21:28:54 +02:00
J. Nick Koston
96120b64e0
Fix missing mocking in nextdns tests ( #114541 )
2024-04-01 06:53:49 -10:00
Michael
2e11a61726
Automatic cleanup of entity and device registry in Tankerkoenig ( #114573 )
2024-04-01 16:04:18 +02:00
J. Nick Koston
ea7f2af966
Fix missing mocking in blink tests ( #114540 )
...
extracted from #114539
2024-04-01 11:23:38 +02:00
Sid
d5f883fbf0
Unignore Ruff PLR in tests ( #114470 )
...
* Unignore Ruff PLR in tests
* Address review comments
* review comments
* fix import
* Update test_api.py
* Update test_api.py
* Update test_api.py
2024-04-01 11:11:59 +02:00
J. Nick Koston
be398e0a3f
Fix flakey sonos test test_creating_entry_sets_up_media_player ( #114539 )
2024-03-31 13:49:24 -10:00
Jan-Philipp Benecke
04786e019a
Use device registry mock instead of `hass.helpers` in traccar_server tests ( #114532 )
2024-04-01 00:42:46 +02:00
Jan-Philipp Benecke
ecf286cd81
Avoid use of `hass.helpers` in plugwise test ( #114534 )
2024-04-01 00:41:47 +02:00
Jan-Philipp Benecke
0238c2ea9e
Use device registry mock instead of `hass.helpers` in dsmr tests ( #114535 )
2024-04-01 00:41:06 +02:00
Robert Svensson
05d40fbc4c
Bump axis to v60 ( #114544 )
...
* Improve Axis MQTT support
* Bump axis to v60
2024-04-01 00:24:41 +02:00
Thomas55555
5eb4cf6a05
Add error sensor for Husqvarna Automower ( #113165 )
...
* Add error sensor for Husqvarna Automower
* Apply suggestions from code review
Co-authored-by: Jan-Philipp Benecke <github@bnck.me>
* address review
* Add restricted reason sensor
* ruff
* pin options
---------
Co-authored-by: Jan-Philipp Benecke <github@bnck.me>
2024-03-31 20:06:30 +02:00
wittypluck
7919ca63d0
Add uptime sensor to Glances ( #111402 )
...
* Add uptime sensor to Glances
* Merge upstream
* Merge upstream
* Fix coverage
* Add uptime sensor to Glances
* Merge upstream
* Merge upstream
* Fix coverage
* Move most uptime specific code to DataUpdateCoordinator
* Add last_reported after merge with upstream
* Add unit tests for uptime sensor
* Add unit tests for uptime sensor
* Add unit tests for uptime sensor
* Add unit tests for uptime sensor
* Move update code out of getter native_value()
* Add unit tests for uptime sensor
* Update uptime method signatures
* Set uptime icon in icons.json
* Use freezer.tick for uptime tests
* Frozen time test fails on github
* Add MIN_UPTIME_VARIATION const value
* Only update uptime on startup or when remote server restarts
* Fix for 0 values
* Set value to None to set state to Unknown if key is not found
* Add unit test for uptime change
* Code reduction
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2024-03-31 20:04:39 +02:00
Joost Lekkerkerker
52741d7114
Add single config entry to Analytics insights ( #114427 )
...
* Add single config entry to Analytics insights
* Add single config entry to Analytics insights
* Add single config entry to Analytics insights
2024-03-31 15:47:24 +02:00
Sid
d846676e84
Enable first batch of Ruff RET rules ( #114480 )
...
* Enable first batch of Ruff RET rules
* disable pylint rules
2024-03-31 11:30:59 +02:00
Jan-Philipp Benecke
6e3e09f2c3
Use entity & device registry mocks instead of `hass.helpers` in airthings_ble tests ( #114520 )
2024-03-31 09:08:07 +02:00
Paulus Schoutsen
f01235ef74
Re-organize conversation integration ( #114502 )
...
* Re-organize conversation integration
* Clean up 2 more imports
* Re-export models
* Fix imports
* Uno mas
* Rename agents to models
* Fix cast test that i broke?
* Just blocking till I'm done
* Wrong place
2024-03-31 00:05:25 -04:00
J. Nick Koston
f0b07ae942
Add pytest rewrite for wemo tests that use entity_test_helpers ( #114516 )
2024-03-30 17:35:49 -10:00
TheJulianJES
b0a1450a2b
Fix ZHA websocket API test ( #114495 )
...
* Fix result overwriting expected config
* Use `BASE_CUSTOM_CONFIGURATION` for initial/expected config
2024-03-31 00:17:09 +01:00
Michael Hansen
d23b22b566
Add initial support for floors to intents ( #114456 )
...
* Add initial support for floors to intents
* Fix climate intent
* More tests
* No return value
* Add requested changes
* Reuse event handler
2024-03-30 16:59:20 -04:00
Bruno Henrique
9f9a141112
Add UniFi WLAN Password sensor ( #114419 )
...
* Adding UniFi WLAN Password Sensor
* Adding UniFi WLAN Password Sensor
* Adding UniFi WLAN Password Sensor
* Adding UniFi WLAN Password Sensor
Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
* Adding UniFi WLAN Password Sensor
Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
* Adding UniFi WLAN Password Sensor
* Adding UniFi WLAN Password Sensor
* Adding UniFi WLAN Password Sensor
---------
Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
2024-03-30 19:49:33 +01:00
J. Nick Koston
d63adb6350
Improve sonos test synchronization ( #114468 )
2024-03-30 06:34:47 -10:00
Shay Levy
3e99afdd54
Cleanup Shelly RGBW light entities ( #114410 )
2024-03-30 18:48:57 +03:00
Bruno Henrique
53f262095c
Add UniFi WLAN regenerate password button ( #114422 )
...
* Adding UniFi WLAN Change Password Button
Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
* Adding UniFi WLAN Regenerate Password Button
Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
---------
Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
2024-03-30 15:53:23 +01:00
Joost Lekkerkerker
b7527feb5f
Rework opensky tests ( #114441 )
...
* Rework opensky tests
* Rework opensky tests
* Fix
2024-03-30 14:52:33 +01:00
Sid
6587ee20db
Enable Ruff TRY300 ( #114437 )
...
* Enable Ruff TRY300
* Update validation.py
* Address review comments
2024-03-30 10:37:59 +01:00
J. Nick Koston
9a79320861
Mark executor jobs as background unless created from a tracked task ( #114450 )
...
* Mark executor jobs as background unless created from a tracked task
If the current task is not tracked the executor job should not
be a background task to avoid delaying startup and shutdown.
Currently any executor job created in a untracked task or
background task would end up being tracked and delaying
startup/shutdown
* import exec has the same issue
* Avoid tracking import executor jobs
There is no reason to track these jobs as they are always awaited
and we do not want to support fire and forget import executor jobs
* fix xiaomi_miio
* lots of fire time changed without background await
* revert changes moved to other PR
* more
* more
* more
* m
* m
* p
* fix fire and forget tests
* scrape
* sonos
* system
* more
* capture callback before block
* coverage
* more
* more races
* more races
* more
* missed some
* more fixes
* missed some more
* fix
* remove unneeded
* one more race
* two
2024-03-30 00:16:53 -04:00
Sid
aec7a67a58
Unignore Ruff PLE, PLW in tests ( #114406 )
...
* Unignore Ruff PLE, PLW in tests
* fix tests
2024-03-29 23:58:30 +01:00
Jan Bouwhuis
5e3ce80488
Remove stale test for mqtt climate ( #114443 )
2024-03-29 16:01:50 +01:00
Luca Angemi
54c5f18aac
Add `uid` attribute to `imap_content` event data ( #114432 )
...
* Add uid to imap event
* Add ´uid´ to tests
* Update test_init.py
2024-03-29 15:04:24 +01:00
Sid
dc557fca1e
Refactor conversation mock_agent ( #114428 )
...
* Refactor conversation mock_agent
* Address review comments
2024-03-29 14:38:58 +01:00
Jan-Philipp Benecke
8d6d70d6b5
Use `setup_test_component_platform` helper for select entity component tests instead of `hass.components` ( #114412 )
...
* Use `setup_test_component_platform` helper for select entity component tests instead of `hass.components`
* Use _values instead of _attr_current_option
* Clean up
* Set default current_option for second mock entity
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-03-29 14:36:33 +01:00
Mischa Siekmann
6d54f686a6
Add Integration for Energenie Power-Sockets ( #113097 )
...
* Integration for Energenie Power-Strips (EGPS)
* cleanups reocommended by reviewer
* Adds missing exception handling when trying to send a command to an unreachable device.
* fix: incorrect handling of already opened devices in pyegps api. bump to pyegps=0.2.4
* Add blank line after file docstring, and other cosmetics
* change asyncio.to_thread to async_add_executer_job
* raises HomeAssistantError EgpsException in switch services.
* switch test parameterized by entity name
* reoved unused device registry
* add translation_key and update_before_add
* bump pyegps dependency to version to 0.2.5
* combined get_device patches and put into conftest.py
* changed switch entity to use _attr_is_on and cleanups
* further cleanup
* Apply suggestions from code review
* refactor: rename egps to energenie_power_sockets
* updated test snapshot
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-03-29 13:29:14 +01:00
Steven B
72614c86c2
Bump python-ring-doorbell to 0.8.8 ( #114431 )
...
* Bump ring_doorbell to 0.8.8
* Fix intercom history test for new library version
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-03-29 12:47:21 +01:00
Joost Lekkerkerker
ed7e5c4de6
Add single config entry to Mullvad ( #114426 )
...
* Add single config entry to Mullvad
* Add single config entry to Mullvad
* Add single config entry to Mullvad
* Fix
2024-03-29 11:04:37 +01:00
Jan-Philipp Benecke
247ee6e4f0
Address late review comments for fan entity component test ( #114425 )
...
* Address late review comments for fan entity component test
* Update tests/components/fan/common.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-03-29 10:18:57 +01:00
Jan-Philipp Benecke
045dc3f1fb
Use `setup_test_component_platform` helper for datetime entity component tests instead of `hass.components` ( #114415 )
2024-03-29 07:51:10 +01:00
Jan-Philipp Benecke
74d614243b
Use `setup_test_component_platform` helper for date entity component tests instead of `hass.components` ( #114413 )
...
* Use `setup_test_component_platform` helper for date entity component tests instead of `hass.components`
* Remove missing
2024-03-29 07:43:19 +01:00
Jan-Philipp Benecke
a102230498
Use `setup_test_component_platform` helper for time entity component tests instead of `hass.components` ( #114411 )
2024-03-29 07:34:00 +01:00
Jan-Philipp Benecke
ae635a5586
Use `setup_test_component_platform` helper for fan entity component tests instead of `hass.components` ( #114409 )
2024-03-29 07:32:41 +01:00
Sid
a5b609f081
Enable ruff TRY401 ( #114395 )
...
* Enable ruff TRY401
* fix tests
2024-03-29 07:20:36 +01:00