Commit Graph

17978 Commits

Author SHA1 Message Date
Joost Lekkerkerker
598610e313 Add entity translations to Sensibo (#96091) 2023-07-08 16:50:46 +02:00
J. Nick Koston
e39f023e3f Refactor ESPHome camera to avoid creating tasks (#95818) 2023-07-08 12:36:40 +02:00
Erik Montnemery
3d064b7d6b Add filters to cover/services.yaml (#95854) 2023-07-08 11:51:02 +02:00
Álvaro Fernández Rojas
1eb2ddf010 Update aioairzone-cloud to v0.2.1 (#96063) 2023-07-08 11:41:39 +02:00
Erik Montnemery
6dae3553f2 Add MEDIA_ENQUEUE to MediaPlayerEntityFeature (#95905) 2023-07-08 10:55:25 +02:00
J. Nick Koston
2b4f6ffcd6 Speed up hassio ingress (#95777) 2023-07-08 10:50:39 +02:00
Scott Giminiani
f4ad261f51 Use global CONF_API_TOKEN constant rather than defining our own (#96120) 2023-07-08 10:46:34 +02:00
J. Nick Koston
e38f55fdb6 Move ESPHomeManager into its own file (#95870)
* Move ESPHomeManager into its own file

This is not a functional change. This is only a reorganization
ahead of some more test coverage being added so moving tests
around can be avoided later.

* relos

* fixes

* merge a portion of new cover since its small and allows us to remove the __init__ from .coveragerc
2023-07-08 09:19:44 +02:00
Robert Hillis
8bfac2c46c Correct Goalzero sensor state class (#96122) 2023-07-08 08:52:15 +02:00
Jan Bouwhuis
18ee9f4725 Refactor async_get_hass to rely on threading.local instead of a ContextVar (#96005)
* Test for async_get_hass

* Add Fix
2023-07-07 14:52:38 -04:00
Joost Lekkerkerker
ddd0d3faa2 Get MyStrom device state before checking support (#96004)
* Get device state before checking support

* Add full default device response to test

* Add test mocks

* Add test coverage
2023-07-07 11:24:41 -04:00
Jan Stienstra
1aecbb9bd5 Add full test coverage to Jellyfin (#86974)
* Add full test coverage

* Remove unreachable exception

* Remove comment line. Conflicting with codecov

* Use auto fixture and syrupy
2023-07-07 08:42:02 -04:00
Erik Montnemery
86a397720f Move platform_integration_no_support issue to the homeassistant integration (#95927)
* Move platform_integration_no_support issue to the homeassistant integration

* Update test

* Improve repair text

* Update test
2023-07-07 13:31:54 +02:00
Joost Lekkerkerker
84979f8e92 Use device class naming in Renault (#96038) 2023-07-07 10:34:11 +02:00
Scott Giminiani
66a1e5c2c1 Remove copy/pasted references to GMail in YouTube integration tests (#96048)
These were likely used as an example when writing the tests for this
component and we missed renaming them.

A few unused vars with references to GMail were also removed.
2023-07-07 06:43:46 +02:00
Mike Woudenberg
ba1266a893 Add sensors to LOQED integration for battery percentage and BLE stength (#95726)
* Add sensors for battery percentage and BLE stength

* Use translatable name for BLE strength, no longer pass enity to sensor
2023-07-06 23:09:34 -04:00
Joost Lekkerkerker
d2bcb5fa87 Add entity translations to Rainbird (#96030)
* Add entity translations to Rainbird

* Add entity translations to Rainbird
2023-07-06 16:03:01 -07:00
lymanepp
6c4b5291e1 Add humidity to NWS forecast (#95575)
* Add humidity to NWS forecast to address https://github.com/home-assistant/core/issues/95572

* Use pynws 1.5.0 enhancements for probabilityOfPrecipitation, dewpoint, and relativeHumidity.

* Update requirements to match pynws version

* test for clear night

* update docstring

---------

Co-authored-by: MatthewFlamm <39341281+MatthewFlamm@users.noreply.github.com>
2023-07-06 23:05:46 +02:00
Joost Lekkerkerker
99430ceb34 Add entity translations for PureEnergie (#95935)
* Add entity translations for PureEnergie

* Fix tests
2023-07-06 22:51:05 +02:00
Guillaume Duveau
23d5fb9622 Add more device info for SmartThings devices (#95723)
* Add more device info for SmartThings devices

* Fix binary_sensor test

* Fix binary sensor test, try 2

* Fix and add SmartsThings new device info tests
2023-07-06 14:26:46 -04:00
puddly
ecc0917e8f Migrate bracketed IP addresses in ZHA config entry (#95917)
* Automatically correct IP addresses surrounded by brackets

* Simplify regex

* Move pattern inline

* Maintain old behavior of stripping whitespace
2023-07-06 11:47:51 -04:00
J. Nick Koston
b7b8afffd0 Handle integrations with empty services or failing to load during service description enumeration (#95911)
* wip

* tweaks

* tweaks

* add coverage

* complain loudly as we never execpt this to happen

* ensure not None

* comment it
2023-07-06 11:19:06 -04:00
Jan Bouwhuis
b9c7e7c15e Fix not including device_name in friendly name if it is None (#95485)
* Omit device_name in friendly name if it is None

* Fix test
2023-07-06 11:14:09 -04:00
Bram Kragten
5d9533fb90 Make script services always respond when asked (#95991)
* Make script services always respond when asked

* Update test_init.py
2023-07-06 10:48:03 -04:00
Bram Kragten
342d07cb92 Set correct response value in service description when async_set_service_schema is used (#95985)
* Mark scripts as response optional, make it always return a response if return_response is set

* Update test_init.py

* Revert "Update test_init.py"

This reverts commit 8e113e54db.

* Split + add test
2023-07-06 10:24:34 -04:00
Adrián Moreno
0e428f8d39 Deprecate Dry and Fan preset modes in favor of HVAC modes (#95634)
* zwave_js: deprecate Dry and Fan preset modes

Migrating Dry and Fan presets to HVAC modes

* Move consts. Set Dry and Fan as HVAC-first modes.

* Update homeassistant/components/zwave_js/climate.py

Co-authored-by: Raman Gupta <7243222+raman325@users.noreply.github.com>

* Fix tests

* Keep track of HA release when deprecation was introduced

---------

Co-authored-by: Raman Gupta <7243222+raman325@users.noreply.github.com>
2023-07-05 15:12:21 -04:00
J. Nick Koston
dc5ee71d7a Add slots to core EventBus (#95856) 2023-07-05 11:47:24 -05:00
Jan Bouwhuis
d9721702af Address late review of freebox tests (#95910)
Use lower case for local variables
2023-07-05 16:59:10 +02:00
Erik Montnemery
c7f6d84058 Warn when changing multipan channel if there are not 2 known users (#95898)
* Warn when changing multipan channel if there are not 2 known users

* Add test

* Improve messages

* Tweak translation string

* Adjust message

* Remove unused translation placeholders
2023-07-05 16:51:28 +02:00
J. Nick Koston
ea57f78392 Add slots to the service registry (#95857) 2023-07-05 15:59:36 +02:00
Florent Thiery
bd7057f7b1 Add raid array degraded state binary sensor to freebox sensors (#95242)
Add raid array degraded state binary sensor
2023-07-05 15:09:12 +02:00
J. Nick Koston
505f8fa363 Fix ESPHome camera not accepting the same exact image bytes (#95822) 2023-07-05 07:17:28 -05:00
Aaron Collins
f028d1a1ca Bump pydaikin 2.10.5 (#95656) 2023-07-05 07:12:18 -05:00
J. Nick Koston
b2e708834f Add slots to the StateMachine class (#95849) 2023-07-05 14:00:37 +02:00
Erik Montnemery
39dcb5a2b5 Adjust services and properties supported by roborock vacuum (#95789)
* Update supported features

* Raise issue when vacuum.start_pause is called
2023-07-05 12:53:07 +02:00
J. Nick Koston
659281aab6 Fix ESPHome alarm_control_panel when state is missing (#95871) 2023-07-05 08:35:40 +02:00
Allen Porter
26f2fabd85 Fix timezones used in list events (#95804)
* Fix timezones used in list events

* Add additional tests that catch floating vs timezone datetime comparisons
2023-07-05 08:25:03 +02:00
Álvaro Fernández Rojas
60e2ee86b2 Add Airzone Cloud Zone running binary sensor (#95606) 2023-07-04 14:29:14 -05:00
Martin Hjelmare
02192ddf82 Set Matter battery sensors as diagnostic (#95794)
* Set matter battery sensor to diagnostic

* Update tests

* Use new eve contact sensor dump across the board

* Assert entity category

* Complete typing
2023-07-04 14:54:37 +02:00
Erik Montnemery
2ca648584d Update mqtt vacuum supported features (#95830)
* Update mqtt vacuum supported features

* Update test
2023-07-04 14:18:42 +02:00
Erik Montnemery
8f2a21d270 Update sharkiq vacuum supported features (#95829) 2023-07-04 11:51:42 +02:00
Erik Montnemery
10e9b9f813 Fix ring siren test (#95825) 2023-07-04 09:16:40 +02:00
Joost Lekkerkerker
234ebdcb84 Add entity translations for P1 Monitor (#95811) 2023-07-04 08:39:24 +02:00
Allen Porter
2f73be0e50 Ensure that calendar output values are json types (#95797) 2023-07-03 12:05:02 -07:00
Erik Montnemery
78880f0c9d Fix execute device actions with WS execute_script (#95783) 2023-07-03 14:21:01 -04:00
Erik Montnemery
5f9da06e49 Fix flaky websocket_api test (#95786) 2023-07-03 11:53:21 -05:00
tronikos
4e7d8b579a Address Opower review comments (#95763)
* Address comments

* Apply suggestions from code review

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

* Update sensor.py

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-07-03 14:53:44 +02:00
hidaris
3bd8955e0e Add Matter Climate support (#95434)
* Add Matter Climate support

* update set target temp and update callback

* remove print

* remove optional property

* Adjust the code to improve readability.

* add thermostat test

* Remove irrelevant cases in setting the target temperature.

* add temp range support

* update hvac action

* support adjust low high setpoint..

* support set hvac mode

* address some review feedback

* move some methods around

* dont discover climate in switch platform

* set some default values

* fix some of the tests

* fix some typos

* Update thermostat.json

* Update homeassistant/components/matter/climate.py

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

* Update homeassistant/components/matter/climate.py

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

* support heat_cool in hvac_modes

* address some review feedback

* handle hvac mode param in set temp service

* check hvac modes by featuremap

* add comment to thermostat feature class

* make ruff happy..

* use enum to enhance readability.

* use builtin feature bitmap

* fix target temp range and address some feedback

* use instance attribute instead of class attr

* make ruff happy...

* address feedback about single case

* add init docstring

* more test

* fix typo in tests

* make ruff happy

* fix hvac modes test

* test case for update callback

* remove optional check

* more tests

* more tests

* update all attributes in the update callback

* Update climate.py

* fix missing test

---------

Co-authored-by: Marcel van der Veldt <m.vanderveldt@outlook.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-07-03 12:33:50 +02:00
J. Nick Koston
7bdd64a3f7 Handle invalid utf-8 from the ESPHome dashboard (#95743)
If the yaml file has invalid utf-8, the config flow would raise an
unhandled exception. Allow the encryption key to be entered manually
in this case instead of a hard failure

fixes #92772
2023-07-02 22:47:25 -04:00
dougiteixeira
75bdb03363 Fix source device when source entity is changed for Utility Meter (#95636)
* Fix source device when source entity is changed

* Update loop

* Complement and add comments in the test_change_device_source test

* Only clean up dev reg when options change

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-07-02 22:46:21 -04:00