Commit Graph
59332 Commits
Author SHA1 Message Date
Marc MuellerandGitHub 97d9951d8a Update mypy to 1.0.1 (#88361) 2023-02-18 10:02:41 +01:00
J. Nick KostonandGitHub 5c09d81f86 Ensure doorbird always prefers internal url (#88369)
* Ensure doorbird always uses internal url

The doorbird should always use the internal url to
ensure the webhooks work. The doorbird does not
verify ssl so there is no concern about ssl matching
according to the LAN-2-LAN API v0.32 Dec 21 2022

* adjust

* Update homeassistant/components/doorbird/__init__.py
2023-02-18 09:33:40 +01:00
Marc MuellerandGitHub 39067f61e4 Sync pytest job needs [ci] (#88363) 2023-02-17 23:25:35 -06:00
Paulus SchoutsenandGitHub db3cd8e276 Fix danglin task for util.timeout (#88366)
Fix danglin task for util timeout
2023-02-18 00:11:35 -05:00
Franck NijhofandGitHub 1e05697080 Enable Ruff B007 (#88356)
* Enable Ruff B007

* Adjust existing cases
2023-02-17 21:08:18 -05:00
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 NijhofandGitHub 2ea5811e3a Hold strong references to tasks in WLED (#88257) 2023-02-17 23:21:28 +01:00
Joakim SørensenandGitHub fa811da872 Use ubuntu-20.04 for Ruff lint job (#88355) 2023-02-17 23:07:02 +01:00
Joakim SørensenandGitHub 04d51aa8de Do not try to run DB jobs if there are no target groups (#88352) 2023-02-17 22:49:22 +01:00
Franck NijhofandGitHub 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 HansenandGitHub 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 KostonandGitHub 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 SchoutsenandGitHub 710b250c1d Fix dangling task for bluetooth_le_tracker (#88284) 2023-02-17 20:57:45 +01:00
Paulus SchoutsenandGitHub 91ecdc83b2 Fix dangling task for livisi (#88294) 2023-02-17 20:57:00 +01:00
Paulus SchoutsenandGitHub d866b0ddcb Fix dangling task for squeezebox (#88299) 2023-02-17 20:56:27 +01:00
Paulus SchoutsenandGitHub 99c904ea5d Fix dangling task for plum_lightpad (#88295) 2023-02-17 20:55:13 +01:00
Paulus SchoutsenandGitHub 0a363fa004 Fix dangling task for sense (#88296) 2023-02-17 20:54:34 +01:00
Paulus SchoutsenandGitHub 4b3b2fb693 Fix dangling task for smart_meter_texas (#88297) 2023-02-17 20:53:49 +01:00
Paulus SchoutsenandGitHub 28a09199ac Fix dangling task for insteon (#88293) 2023-02-17 20:53:06 +01:00
517e88600c Fix dangling task for mysensors (#88290)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-02-17 20:52:30 +01:00
Paulus SchoutsenandGitHub 5a31bb2ff3 Fix dangling task for crownstone (#88292) 2023-02-17 20:51:22 +01:00
Franck NijhofandGitHub 26f0de0d80 Update pyfido to 2.1.2 (#88343) 2023-02-17 19:51:36 +01:00
Paulus SchoutsenandGitHub 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
2b8abf84bd Fail tests which cause an SQLAlchemy warning (#88327)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-02-17 19:17:06 +01:00
Erik MontnemeryandGitHub 45829b016c Remove conditional test of self.hass from tplink_omada switch (#88325) 2023-02-17 19:16:37 +01:00
J. Nick KostonandGitHub 30384501af Cleanup august binary sensors (#88332) 2023-02-17 19:15:56 +01:00
epenetandGitHub a16e298599 Adjust json imports in tests (#88248) 2023-02-17 19:13:48 +01:00
jjlawrenandGitHub b51836a57b Detect when battery-powered Sonos devices are turned off (#87606) 2023-02-17 19:13:22 +01:00
epenetandGitHub 7427d4f323 Add type hints to integration tests (zha) (#88309) 2023-02-17 18:54:26 +01:00
epenetandGitHub 185cd61cbd Add type hints to integration tests (recorder) (#88313) 2023-02-17 18:50:09 +01:00
epenetandGitHub 0a80ac19bc Add type hints to integration tests (part 18) (#88174) 2023-02-17 18:45:48 +01:00
Paulus SchoutsenandGitHub f465561536 Fix dangling task for cast (#88285) 2023-02-17 18:43:40 +01:00
dcmeglioandGitHub da046f93f4 Add additional characteristics for Airversa Homekit Air Purifiers (#85660) 2023-02-17 15:55:31 +00:00
epenetandGitHub 5b80b1f55a Add type hints to integration tests (part 25) (#88308) 2023-02-17 16:52:28 +01:00
Ernst KlamerandGitHub aeb09678a8 Bump xiaomi-ble to 0.16.4 (#88333) 2023-02-17 15:45:18 +00:00
Paulus SchoutsenandGitHub a223b30924 Fix dangling task for roon (#88291) 2023-02-17 16:42:45 +01:00
epenetandGitHub 9a5f88f55f Add type hints to integration tests (part 23) (#88235) 2023-02-17 16:40:46 +01:00
epenetandGitHub aa50096a31 Add type hints to integration tests (part 24) (#88307) 2023-02-17 16:34:53 +01:00
Paulus SchoutsenandGitHub f3e4783a5e Fix dangling task for wiz (#88301) 2023-02-17 08:29:46 -06:00
Erik MontnemeryandGitHub 9989a4787b Fix recorder platform tests (#88330) 2023-02-17 08:22:15 -06:00
epenetandGitHub dfdd279add Fix incorrect condition for atmospheric_pressure (#88320) 2023-02-17 14:00:32 +01:00
epenetandGitHub 5dda1de5bd Adjust async_setup_entry in config_flow scaffold (#88319) 2023-02-17 13:43:56 +01:00
Erik MontnemeryandGitHub 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 KostonandGitHub 5ff87e6110 Bump ha-ffmpeg to 3.1.0 (#88304)
changelog: https://github.com/home-assistant-libs/ha-ffmpeg/compare/3.0.2...3.1.0
2023-02-17 09:19:12 +01:00
Paulus SchoutsenandGitHub a356f35638 Fix dangling task for google (#88287) 2023-02-16 20:31:06 -08:00
Paulus SchoutsenandGitHub 0904848579 Fix dangling task for homeassistant integration (#88288) 2023-02-16 22:23:44 -06:00
509d968814 Fix dangling task for elkm1 (#88286)
* Fix dangling task for elkm1

* Update homeassistant/components/elkm1/__init__.py

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

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
2023-02-16 23:22:34 -05:00
J. Nick KostonandGitHub 3212a43e6b Fix handling of dns resolution failure during sense setup (#88279)
```
2023-02-16 20:44:54.516 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry alexander for sense
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1152, in _create_direct_connection
    hosts = await asyncio.shield(host_resolved)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1152, in _create_direct_connection
    hosts = await asyncio.shield(host_resolved)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 861, in _resolve_host
    await event.wait()
  File "/usr/local/lib/python3.10/site-packages/aiohttp/locks.py", line 34, in wait
    raise self._exc
  File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 874, in _resolve_host
    addrs = await self._resolver.resolve(host, port, family=self._family)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/resolver.py", line 33, in resolve
    infos = await self._loop.getaddrinfo(
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 860, in getaddrinfo
    return await self.run_in_executor(
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.10/socket.py", line 955, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 381, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/usr/src/homeassistant/homeassistant/components/sense/__init__.py", line 83, in async_setup_entry
    await gateway.get_monitor_data()
  File "/usr/local/lib/python3.10/site-packages/sense_energy/asyncsenseable.py", line 214, in get_monitor_data
    json = await self._api_call("app/monitors/%s/overview" % self.sense_monitor_id)
  File "/usr/local/lib/python3.10/site-packages/sense_energy/asyncsenseable.py", line 174, in _api_call
    async with self._client_session.get(
  File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 1141, in __aenter__
    self._resp = await self._coro
  File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 536, in _request
    conn = await self._connector.connect(
  File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 540, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 901, in _create_connection
    _, proto = await self._create_direct_connection(req, traces, timeout)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1166, in _create_direct_connection
    raise ClientConnectorError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.sense.com:443 ssl:default [Try again]  ```
2023-02-16 23:18:16 -05:00
J. Nick KostonandGitHub 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 SchoutsenandGitHub 3c68907351 Fix dangling task for homekit (#88289) 2023-02-16 23:07:54 -05:00