Commit Graph
69034 Commits
Author SHA1 Message Date
Maciej BieniekandGitHub 2d2e215e2c Fix Tractive switch availability (#104502) 2023-11-28 12:08:12 +01:00
1ef97ab6f8 Set min, max, and step for ViCare number entities (#104593)
Co-authored-by: Robert Resch <robert@resch.dev>
2023-11-28 10:53:59 +01:00
Christopher FennerandGitHub d1463a81d3 Fix async issue in ViCare climate entity (#104619)
* use async executor

* use async executor

* Revert "use async executor"

This reverts commit 4913e05b1c.

* Revert "use async executor"

This reverts commit 40abc10362.

* fix async issue
2023-11-28 10:19:20 +01:00
f149c809c2 Add field description for Roku host (#104631)
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-11-28 10:03:57 +01:00
Teemu RandGitHub 28a3d36bc1 Remove eq3btsmart integration (#94698) 2023-11-28 09:11:32 +01:00
mkmerandGitHub d318155f09 Move to new service handeling methods in Blink (#103435) 2023-11-28 08:34:41 +01:00
a1aff5f4a0 Add websocket todo/item/subscribe for subscribing to changes to todo list items (#103952)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-11-28 08:27:51 +01:00
J. Nick KostonandGitHub e048ad5a62 Bump aioesphomeapi to 19.1.4 (#104629) 2023-11-28 08:20:04 +01:00
J. Nick KostonandGitHub 7d45227a59 Bump aioesphomeapi to 19.1.3 (#104628)
- small fix for aioesphomeapi-discover
- 100% line coverage for the library
- fix not backing off on encryption errors (fixes #104624)

changelog: https://github.com/esphome/aioesphomeapi/compare/v19.1.1...v19.1.3
2023-11-27 19:48:29 -06:00
Ville SkyttäandGitHub e594c19c1e Upgrade huawei-lte-api to 1.7.3 (#104613) 2023-11-27 22:05:46 +01:00
Ville SkyttäandGitHub fd5cda4ec6 Issue bytes vs str related warnings from tests (#101186) 2023-11-27 21:59:54 +01:00
sdb9696andGitHub 5cde367366 Bump ring_doorbell to 0.8.3 (#104611) 2023-11-27 21:49:33 +01:00
Ville SkyttäandGitHub 04ba7fcbf4 Update leftover comment reference from black to ruff (#104605) 2023-11-27 21:42:11 +01:00
Jan-Philipp BeneckeandGitHub 7efc581a48 Remove duplicate fixture from bsblan (#104612) 2023-11-27 21:35:13 +01:00
Aarni KoskelaandGitHub b994141bc6 CI: simplify Ruff-related things (#104602) 2023-11-27 21:23:37 +01:00
On FreundandGitHub ba33ad6b18 OurGroceries review comments (#104606) 2023-11-27 20:21:07 +01:00
Thijs PutmanandGitHub 360ef894a7 Use non-persistent connection for MPD (#94507)
* Do not use a persistent connection to MPD

In other words, don't rely on the connection management provided by
"python-mpd2". Instead of keeping the connection to MPD open, we
explicitly connect before and disconnect after each command.

There is probably a bit of overhead to this, but as the integration
uses a local-polling approach to begin with, no functionality is lost or
degraded.

This change greatly hardens the MPD integration against both network
issues and problems with the daemon itself. All connection-related
failure modes have effectively been removed.

* Update state retrieval methods

Only "async_get_media_image" attempts to connect, all others are either
called from there, or from the main "async_update" method (see previous
commit) which also attempts to connect.

So, this commit mainly revolves around gracefully handling situations
where no connection is available when trying to retrieve MPD state.

Finally, note the removal of "self._commands". This property is only
used at the start of "_async_get_file_image_response" and was thus
changed into a local variable.

* Update media-player control methods

These all need to explicitly connect to MPD as part of their flow.

* Correct ruff failure (auto-fixed)

* Use "async_timeout.timeout" context manager

* Minor changes

* Replace "async_timeout" with "asyncio.timeout"

* Initialise "self._status" to empty dictionary

Used to be initialised as None, which caused "NoneType is not iterable"
type of issues in case of an unexpected disconnect (at which point
status gets set to None again). Instead of guarding against None
everywhere, using an empty dictionary seemed more prudent...

Furthermore, more cautiously access its members to prevent potential
KeyError-s in similar cases.

* Fix livelock in "async_mute_volume()"

This method doesn't need a connection; it calls into two other methods
that actually connect to MPD – attempting to connect from here resulted
in a livelock.
2023-11-27 18:35:46 +01:00
Ville SkyttäandGitHub 2a4ab3d53d Support HTTPS connections to Huawei LTE devices (#86119)
* Support HTTPS connections to Huawei LTE devices

Not all devices support HTTPS, so we default to plain HTTP still.

Ones that do are very likely to have certificates that do not pass
hostname verification, and are either self signed or issued by an
untrusted CA. Add option to use unverified HTTPS to make it possible to
connect to these, and when in effect, filter urllib3's related warnings
about insecure connections to the hostname in question.

* Use common config key and strings for certificate verification settings

Even though the wording might be slightly suboptimal here, it's better
to be consistent across the codebase than to finetune on this level.

This also switches the default the other way around: verification is
now disabled by default. This is not a good general default, but for
this particular case setups where the verification would succeed would
be so rare and require considerable local setup that it's very
unlikely to happen in practice.

* Add config flow tests

* Mock logout for better test coverage

* Set up custom requests session only when using unverified https

* Add https config flow test case

* Make better use of verify SSL default
2023-11-27 18:03:29 +01:00
Pascal ReebandGitHub 239d7c9d80 Enable the use of non-encrypted token in Nuki (#104007) 2023-11-27 17:28:13 +01:00
664aca2c68 Fix rainbird duplicate devices (#104528)
* Repair duplicate devices added to the rainbird integration

* Apply suggestions from code review

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

* Update tests/components/rainbird/test_init.py

* Remove use of config_entry.async_setup

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-11-27 07:43:03 -08:00
J. Nick KostonandGitHub 74d7d02833 Bump aiohttp-fast-url-dispatcher to 0.3.0 (#104592) 2023-11-27 09:04:04 -06:00
Christopher FennerandGitHub a5934e9acc Handle preset change errors in ViCare integration (#103992) 2023-11-27 15:35:43 +01:00
706add4a57 Switch formatting from black to ruff-format (#102893)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-11-27 14:38:59 +01:00
cf9b0e804f Deprecate legacy api auth provider (#104409)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-11-27 14:16:18 +01:00
Matthias AlphartandGitHub 5550dcbec8 Add textual representation entities for Fronius status codes (#94155)
* optionally decouple `EntityDescription.key` from API response key

this makes it possible to have multiple entities for a single API response field

* Add optional `value_fn` to EntityDescriptions

eg. to be able to map a API response value to a different value (status_code -> message)

* Add inverter `status_message` entity

* Add meter `meter_location_description` entity

* add external battery state

* Make Ohmpilot entity state translateable

* use built-in StrEnum

* test coverage

* remove unnecessary checks

None is handled before
2023-11-27 13:59:25 +01:00
Marc MuellerandGitHub ba8e2ed7d6 Improve picnic typing (#104587) 2023-11-27 13:13:02 +01:00
epenetandGitHub a5fd479608 Bump sfrbox-api to 0.0.8 (#104580) 2023-11-27 12:30:51 +01:00
Maciej BieniekandGitHub 855c2da64e Bump gios to version 3.2.2 (#104582) 2023-11-27 12:15:55 +01:00
CodingSquirrelandGitHub b4553f19a1 Poll econet water heater once an hour (#90961) 2023-11-27 11:16:10 +01:00
mkmerandGitHub 669b347ed1 Add init test to Blink (#103263) 2023-11-27 11:13:40 +01:00
Joost LekkerkerkerandGitHub ccc8804906 Bump aiowithings to 2.0.0 (#104579) 2023-11-27 10:53:41 +01:00
ufodoneandGitHub 9907e11b03 Remove code owner for envisalink integration (#103864) 2023-11-27 09:59:18 +01:00
Maciej BieniekandGitHub b3ff30a9c8 Bump accuweather to version 2.1.1 (#104563) 2023-11-27 09:49:46 +01:00
epenetandGitHub 5ba70ef2cb Fix AccessDeniedException handling in Renault (#104574) 2023-11-27 09:19:58 +01:00
Jesse HillsandGitHub 95c771e330 Send esphome tts_stream event after audio bytes are actually loaded into memory (#104448)
Send tts_stream event after audio bytes are actually loaded into memory
2023-11-27 09:00:39 +01:00
J. Nick KostonandGitHub 7fbf68fd11 Bump aioesphomeapi to 19.1.1 (#104569)
- Fixes races in bluetooth connections
- The client now has 100% coverage
- The library is approaching ~100% coverage
- Minor performance improvement

changelog: https://github.com/esphome/aioesphomeapi/compare/v19.1.0...v19.1.1

coverage: https://app.codecov.io/gh/esphome/aioesphomeapi/tree/main
2023-11-27 08:56:06 +01:00
Franck NijhofandGitHub 321b24b146 Improve user-facing error messages in HomeWizard Energy (#104547) 2023-11-27 07:47:46 +01:00
Maciej BieniekandGitHub 670e5a2eae Bump nettigo-air-monitor to version 2.2.2 (#104562)
Bump nettigo-air-monitor to version 2.2.2
2023-11-26 22:05:50 +01:00
Jan-Philipp BeneckeandGitHub b49505b390 Add reauth flow to co2signal (#104507) 2023-11-26 20:45:45 +01:00
HesselandGitHub 53e78cb017 Wallbox Change Minimum Value Charging Current (#104553) 2023-11-26 20:40:27 +01:00
J. Nick KostonandGitHub 06b74249f7 Bump aioesphomeapi to 19.1.0 (#104557) 2023-11-26 19:48:35 +01:00
dotvavandGitHub 087efb7545 Add Hitachi air to air heat pumps to the Climate platform (#104517) 2023-11-26 17:55:48 +01:00
jan iversenandGitHub be889c89c1 Update modbus validate table to be 3 state, to simplify the code (#104514) 2023-11-26 17:49:51 +01:00
On FreundandGitHub 6e5dfa0e9b Add OurGroceries integration (#103387)
* Add OurGroceries integration

* Handle review comments

* Fix coordinator test

* Additional review comments

* Address code review comments

* Remove devices
2023-11-26 17:38:47 +01:00
Jan BouwhuisandGitHub 8a1f7b6802 Add translation key for some mqtt exceptions (#104550) 2023-11-26 17:33:54 +01:00
b314df272f Cleanup Discovergy a bit (#104552)
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-11-26 17:32:47 +01:00
Christopher FennerandGitHub ad17acc6ca Fix async issue in ViCare integration (#104541)
* use async executor for get_circuits

* use async executor for get_burners and get_compressors
2023-11-26 15:28:58 +01:00
Maciej BieniekandGitHub 14387cf94b Remove Shelly Wall Display switch entity only if the relay is used as the thermostat actuator (#104506) 2023-11-26 14:46:29 +01:00
Maciej BieniekandGitHub c831802774 Bump nextdns to version 2.1.0 (#104545) 2023-11-26 13:14:01 +01:00
Bouwe WesterdijkandGitHub 959b98be0e Plugwise: bug-fix for Anna + Techneco Elga combination (#104521) 2023-11-26 13:08:10 +01:00