Commit graph

19276 commits

Author SHA1 Message Date
Erik Montnemery
24c23d7323
Warn if integrations call async_show_progress without passing a task () 2024-01-13 11:56:05 +01:00
Joost Lekkerkerker
9471f81a18
Give name to Netatmo device snapshots () 2024-01-13 11:09:47 +01:00
Joost Lekkerkerker
f601104418
Snapshot Netatmo devices () 2024-01-13 10:59:36 +01:00
Joost Lekkerkerker
902619a4db
Add snapshot tests to Netatmo platforms ()
* Add snapshot tests to Netatmo platforms

* Add snapshot tests to Netatmo platforms
2024-01-13 10:18:21 +01:00
Joost Lekkerkerker
7bcfcfef5f
Improve Netatmo tests ()
* Improve Netatmo tests

* Improve Netatmo tests
2024-01-12 23:27:31 +01:00
Jan-Philipp Benecke
68698cacac
Remove deprecated YAML support from litejet () 2024-01-12 16:50:15 -05:00
J. Nick Koston
3a4c64b0a7
Fix missing timeout exception check in powerwall config flow ()
* Fix missing timeout exception check in powerwall config flow

powerwall recently switched to asyncio, and every place we
check for unreachable we need to check for timeout error.
There was one missed

```
09:08 homeassistant homeassistant[546]: 2024-01-12 10:09:08.899 ERROR (MainThread) [homeassistant.components.powerwall.config_flow] Unexpected exception
Jan 12 20:09:08 homeassistant homeassistant[546]: Traceback (most recent call last):
Jan 12 20:09:08 homeassistant homeassistant[546]:   File "/usr/src/homeassistant/homeassistant/components/powerwall/config_flow.py", line 168, in _async_try_connect
Jan 12 20:09:08 homeassistant homeassistant[546]:     info = await validate_input(self.hass, user_input)
Jan 12 20:09:08 homeassistant homeassistant[546]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jan 12 20:09:08 homeassistant homeassistant[546]:   File "/usr/src/homeassistant/homeassistant/components/powerwall/config_flow.py", line 76, in validate_input
Jan 12 20:09:08 homeassistant homeassistant[546]:     site_info, gateway_din = await _login_and_fetch_site_info(
Jan 12 20:09:08 homeassistant homeassistant[546]:                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jan 12 20:09:08 homeassistant homeassistant[546]:   File "/usr/src/homeassistant/homeassistant/components/powerwall/config_flow.py", line 43, in _login_and_fetch_site_info
Jan 12 20:09:08 homeassistant homeassistant[546]:     await power_wall.login(password)
Jan 12 20:09:08 homeassistant homeassistant[546]:   File "/usr/local/lib/python3.12/site-packages/tesla_powerwall/powerwall.py", line 58, in login
Jan 12 20:09:08 homeassistant homeassistant[546]:     return await self.login_as(User.CUSTOMER, password, email, force_sm_off)
Jan 12 20:09:08 homeassistant homeassistant[546]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jan 12 20:09:08 homeassistant homeassistant[546]:   File "/usr/local/lib/python3.12/site-packages/tesla_powerwall/powerwall.py", line 49, in login_as
Jan 12 20:09:08 homeassistant homeassistant[546]:     response = await self._api.login(user, email, password, force_sm_off)
Jan 12 20:09:08 homeassistant homeassistant[546]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jan 12 20:09:08 homeassistant homeassistant[546]:   File "/usr/local/lib/python3.12/site-packages/tesla_powerwall/api.py", line 172, in login
Jan 12 20:09:08 homeassistant homeassistant[546]:     return await self.post(
Jan 12 20:09:08 homeassistant homeassistant[546]:            ^^^^^^^^^^^^^^^^
Jan 12 20:09:08 homeassistant homeassistant[546]:   File "/usr/local/lib/python3.12/site-packages/tesla_powerwall/api.py", line 146, in post
Jan 12 20:09:08 homeassistant homeassistant[546]:     response = await self._http_session.post(
Jan 12 20:09:08 homeassistant homeassistant[546]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jan 12 20:09:08 homeassistant homeassistant[546]:   File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 601, in _request
Jan 12 20:09:08 homeassistant homeassistant[546]:     await resp.start(conn)
Jan 12 20:09:08 homeassistant homeassistant[546]:   File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 960, in start
Jan 12 20:09:08 homeassistant homeassistant[546]:     with self._timer:
Jan 12 20:09:08 homeassistant homeassistant[546]:   File "/usr/local/lib/python3.12/site-packages/aiohttp/helpers.py", line 735, in __exit__
Jan 12 20:09:08 homeassistant homeassistant[546]:     raise asyncio.TimeoutError from None
Jan 12 20:09:08 homeassistant homeassistant[546]: TimeoutError

```

* cov
2024-01-12 21:39:27 +01:00
Cyrill Raccaud
96a9ebf137
Fix missing unique_id for spt integration ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-01-12 12:55:09 +01:00
Peter Winkler
2508b55b0f
Add myUplink integration ()
* First checkin for myUplink

* Refactored coordinator and sensor state classe

* Updated .coveragerc

* Update test_config_flow

* Fix test_config_flow for myuplink

* Only set state class for temperature sensor

* PR comment updates

* Type strong dict

* use asyncio.timeouts

* PR updates (part 1)

* Updated to myuplink 0.0.9

* Add strict typing

* Fix typing

* Inherit CoordinatorEntity

* Clean up coordinator and sensors

* Use common base entity

* Improve device point sensor

* Exclude entity from coverage

* Set device point entity name if there's no entity description

* Update homeassistant/components/myuplink/sensor.py

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

* Update homeassistant/components/myuplink/entity.py

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

* Update homeassistant/components/myuplink/entity.py

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

* Remvoed firmware + connstate sensors

* Always add device point parameter name

* Removed MyUplinkDeviceSensor

* Removed unused class

* key="celsius",

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-01-12 12:17:07 +01:00
J. Nick Koston
4b7a313ece
Use identity checks for CoreState ()
Some of the checks used ==, and some used is. Switch
everything to is as its faster
2024-01-12 10:21:26 +01:00
Erik Montnemery
e7628d23d2
Don't include position in binary valve attributes () 2024-01-12 09:55:28 +01:00
Martin Hjelmare
f8318bbbc7
Fix cloud tts loading () 2024-01-12 09:47:08 +01:00
J. Nick Koston
ce11366b9c
Bump bluetooth deps () 2024-01-12 09:45:49 +01:00
Phil Bruckner
24ddc939c0
Remove Life360 integration () 2024-01-11 21:49:39 +01:00
Erik Montnemery
8a9f9b94ef
Fix call to async_setup_component in translation test () 2024-01-11 10:09:32 -10:00
Erik Montnemery
44a6882c39
Make step_id parameter to FlowHandler.async_show_progress optional ()
Drop step_id parameter from FlowHandler.async_show_progress
2024-01-11 21:05:20 +01:00
Erik Montnemery
ddf3a36061
Improve calls to async_show_progress in google () 2024-01-11 16:47:53 +01:00
Erik Montnemery
24cd6a8a52
Improve ergonomics of FlowManager.async_show_progress ()
* Improve ergonomics of FlowManager.async_show_progress

* Don't include progress coroutine in web response

* Unconditionally reset progress task when show_progress finished

* Fix race

* Tweak, add tests

* Address review comments

* Improve error handling

* Allow progress jobs to return anything

* Add comment

* Remove unneeded check

* Change API according to discussion

* Adjust typing
2024-01-11 12:00:12 +01:00
Robert Resch
1c669c6e84
Revert "Revert "Add preselect_remember_me to /auth/providers"" () 2024-01-11 10:37:19 +01:00
Erwin Douna
b08832a89a
Fastdotcom service optimization ()
* Startup mechanic

* Workable service (again)

* Optimized version, for now

* Minor refactoring

* Test cases

* Fixing test case

* Adding startup comment

* State_unknown added

* Update homeassistant/components/fastdotcom/services.py

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

* Check if config entries are not found

* Update tests/components/fastdotcom/test_service.py

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

* Update homeassistant/components/fastdotcom/services.py

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

* Update homeassistant/components/fastdotcom/services.py

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

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-01-11 08:27:15 +01:00
Jan Bouwhuis
e0457590d1
Fix mqtt text text min max config params can not be equal ()
Fix mqtt text text min max kan not be equal
2024-01-11 07:17:48 +01:00
Christopher Bailey
99e25d94c0
Rework events for UniFi Protect () 2024-01-10 19:02:16 -10:00
Christopher Bailey
ec8a33b52d
Rework state change detection for UniFi Protect entities () 2024-01-10 18:06:45 -10:00
Christopher Bailey
e595d24d78
Add leak sensor for UP Sense for UniFi Protect () 2024-01-10 15:32:05 -10:00
Ernst Klamer
0ae86095d2
Bump bthome-ble to 3.4.1 () 2024-01-10 14:48:37 -10:00
bubonicbob
c74bef265a
Update powerwall for tesla_powerwall 0.5.0 which is async ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-01-10 11:21:53 -10:00
YogevBokobza
bdba6f41c9
Bump aioswitcher to 3.4.1 ()
* switcher: added support for device_key logic included in aioswitcher==3.4.1

* switcher: small fix

* switcher: after lint

* switcher: fix missing device_key in tests

* remove device_key function

* fix missing device_key in tests
2024-01-10 21:41:16 +02:00
Álvaro Fernández Rojas
9036d67588
Rename AEMET weather_update_coordinator ()
* aemet: rename weather_update_coordinator

Use "coordinator" instead, like other integrations.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

* coverage: remove AEMET coordinator

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

---------

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2024-01-10 20:33:44 +01:00
J. Nick Koston
7d18ad6fe7
Reduce discovery flow matching overhead () 2024-01-10 07:14:18 -10:00
Álvaro Fernández Rojas
6a6c447c28
Use new AEMET library data for sensor platform ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Robert Resch <robert@resch.dev>
2024-01-10 16:36:20 +01:00
Jan Bouwhuis
de9bb20135
Fix invalid alexa climate or water_heater state report with double listed targetSetpoint () 2024-01-10 16:23:42 +01:00
Jan Bouwhuis
5bdcbc4e8b
Redact sensitive data in alexa debug logging ()
* Redact sensitive data in alexa debug logging

* Add wrappers to diagnostics module

* Test http api log is redacted
2024-01-10 16:20:47 +01:00
Josef Zweck
956921a930
Improvements for tedee integration ()
* improvements

* wait another second before creating the entry

* move delay to lib

* move library bump to separate PR

* move available back to lock from entity
2024-01-10 14:55:28 +01:00
Erwin Douna
15e3af72d1
Fix Tado unique mobile device dispatcher ()
* Add unique home ID device dispatch

* Adding fixture for new setup

* Minor refactor work

* Add check for unlinked to different homes

* If the interface returns an error

* Proper error handling

* Feedback fixes

* Comments for error in client

* Typo

* Update homeassistant/components/tado/__init__.py

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

* Update homeassistant/components/tado/__init__.py

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

* Update devices fix standard

* Dispatch out of loop

* Update dispatcher

* Clean up

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-01-10 12:09:10 +01:00
Lars R
bf6b9175a1
Add 'bitwise_xor' filter to jinja templates ()
Co-authored-by: Robert Resch <robert@resch.dev>
2024-01-10 09:40:52 +01:00
J. Nick Koston
554c27a31a
Clamp tplink color temp to valid range () 2024-01-09 17:08:49 -10:00
Erik Montnemery
9859306718
Prevent overriding cached attribute as property ()
* Prevent overriding cached attribute as property

* Remove debug
2024-01-09 19:16:45 +01:00
Jan-Philipp Benecke
d1c1eb8428
Add test for avoid triggering ping device tracker home after reload () 2024-01-09 18:39:31 +01:00
Luke Lashley
29cac5b093
Bump Python-Roborock to 0.39.0 ()
* bump to 0.39.0

* add new strings

* change strings
2024-01-09 16:48:01 +01:00
Jan-Philipp Benecke
33dd6f66e3
Correct device class in sql tests () 2024-01-09 16:30:21 +01:00
Jan-Philipp Benecke
1a6418d361
Use right state class in filter test () 2024-01-09 16:06:36 +01:00
Jan-Philipp Benecke
c62e79f9ee
Use right state class for kWh sensor in homekit_controller () 2024-01-09 16:06:18 +01:00
mkmer
4dbaa576a7
Remove unused option flow from blink ()
* Remove unused option flow

* remove update listener

* adjust scan_interval to original default

* default scn interval back to 30s
2024-01-09 16:06:04 +01:00
J. Nick Koston
249e10d8c7
Fix dlink test mutating config entry after its adding to hass () 2024-01-09 14:55:20 +01:00
Jan-Philipp Benecke
15cee58637
Remove deprecated YAML support from zodiac () 2024-01-09 14:32:13 +01:00
Jan-Philipp Benecke
fd533e46dd
Correct state class in mobile_app tests ()
Correct right state class in `mobile_app` tests
2024-01-09 14:08:58 +01:00
vexofp
3c53693fe3
Prevent toggle from calling stop on covers which do not support it ()
* Prevent toggle from calling stop on covers which do not support it

* Update homeassistant/components/cover/__init__.py

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-01-09 12:32:27 +01:00
J. Nick Koston
955c70b8f1
Fix cloudflare tests using a dict for the unique id ()
fix cloudflare tests using a dict for the unique id
2024-01-09 07:59:29 +01:00
J. Nick Koston
ea2178a53d
Fix tractive tests using a dict for the unique_id () 2024-01-08 13:10:15 -10:00
Jan-Philipp Benecke
ca886de3ca
Remove deprecated YAML support from OpenSky () 2024-01-08 22:03:25 +01:00