Commit Graph
77403 Commits
Author SHA1 Message Date
Paul BotteinandGitHub 4581c36648 Fix datetime parameter validation for list events (#95778) 2023-07-03 15:22:22 -04:00
Allen PorterandGitHub 2f73be0e50 Ensure that calendar output values are json types (#95797) 2023-07-03 12:05:02 -07:00
Paulus SchoutsenandGitHub 0f725a24bd Remove the weak ref for tracking update listeners (#95798) 2023-07-03 13:56:21 -05:00
J. Nick KostonandGitHub 4d3662d4da Tune httpx keep alives for polling integrations (#95782)
* Tune keep alives for polling integrations

aiohttp closes the connection after 15s by default,
and httpx closes the connection after 5s by default.

We have a lot of integrations that poll every 10-60s
which create and tear down connections over and over.

Set the keep alive time to 65s to maximize connection
reuse and avoid tls negotiation overhead

* Apply suggestions from code review

* adjust
2023-07-03 14:21:59 -04:00
Erik MontnemeryandGitHub 78880f0c9d Fix execute device actions with WS execute_script (#95783) 2023-07-03 14:21:01 -04:00
J. Nick KostonandGitHub 3f9d5a0192 Use the converter factory in sensor.recorder._normalize_states (#95785)
We have a factory to create converters now which avoids
the overhead of calling convert to create the converter
every time
2023-07-03 14:20:23 -04:00
J. Nick KostonandGitHub 73f90035bb Bump aioesphomeapi to 15.1.2 (#95792)
changelog: https://github.com/esphome/aioesphomeapi/compare/v15.1.1...v15.1.2

intentionally not tagged for beta to give it more time in dev
since we are near the end of the beta cycle
2023-07-03 14:19:41 -04:00
Bram KragtenandGitHub aed0c39bc8 Update frontend to 20230703.0 (#95795) 2023-07-03 14:17:24 -04:00
Erik MontnemeryandGitHub 5f9da06e49 Fix flaky websocket_api test (#95786) 2023-07-03 11:53:21 -05:00
Erik MontnemeryandGitHub 5712d12c42 Remove unsupported services from tuya vacuum (#95790) 2023-07-03 18:37:18 +02:00
Joost LekkerkerkerandGitHub 27e4bca1b3 Fix Growatt translation key (#95784) 2023-07-03 18:36:37 +02:00
Joost LekkerkerkerandGitHub f0eb084908 Add entity translations to Notion (#95755)
* Add entity translations to Notion

* Use device class translations

* Use device class translations
2023-07-03 18:31:07 +02:00
Marc MuellerandGitHub 0a165bb35a Improve opower generic typing (#95758) 2023-07-03 17:43:52 +02:00
Franck NijhofandGitHub 430a1bcb3d Fix implicit use of device name in Verisure (#95781) 2023-07-03 17:38:54 +02:00
Franck NijhofandGitHub 3fa1e12152 Fix implicit use of device name in TwenteMilieu (#95780) 2023-07-03 17:38:03 +02:00
Jan BouwhuisandGitHub e5eb5dace5 Fix translation growatt inverter temperature (#95775) 2023-07-03 16:41:51 +02:00
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
tronikosandGitHub bd6f70c236 Bump opower to 0.0.12 (#95748) 2023-07-03 14:19:40 +02:00
Marcel van der VeldtandGitHub 266522267a Bump aioslimproto to 2.3.2 (#95754) 2023-07-03 14:19:05 +02:00
Jan-Philipp BeneckeandGitHub 935242e64e Use device info object for Discovergy (#95764) 2023-07-03 14:04:17 +02:00
Joost LekkerkerkerandGitHub 8062a0a3bd Use device info object for Nuki (#95757) 2023-07-03 14:03:24 +02:00
Joost LekkerkerkerandGitHub 78cc11ebc4 Use device class naming for Nuki (#95756) 2023-07-03 14:02:49 +02:00
Joost LekkerkerkerandGitHub 4ee7ea3cba Use DeviceInfo object for Nobo hub (#95753) 2023-07-03 14:01:58 +02:00
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
367acd0433 Bump env_canada to v0.5.35 (#95497)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-07-03 11:23:32 +02:00
Raman GuptaandGitHub de7677b28d Small zwave_js code cleanup (#95745) 2023-07-03 09:30:53 +02:00
cdea33d191 Bump bimmer_connected to 0.13.8 (#95660)
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-07-03 09:12:17 +02:00
J. Nick KostonandGitHub 2b66480894 Speed up routing URLs (#95721)
alternative to #95717
2023-07-02 23:00:33 -04:00
Paulus Schoutsen c260e787aa Bumped version to 2023.7.0b4 2023.7.0b4 2023-07-02 22:50:36 -04:00
J. Nick KostonandPaulus Schoutsen fdd8489b93 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:50:32 -04:00
J. Nick KostonandPaulus Schoutsen a77fb14baf Bump python-kasa to 0.5.2 (#95716) 2023-07-02 22:50:31 -04:00
J. Nick KostonandPaulus Schoutsen 98242b5d54 Bump zeroconf to 0.70.0 (#95714) 2023-07-02 22:50:30 -04:00
Maciej BieniekandPaulus Schoutsen d38aab1607 Fix Shelly button unique_id migration (#95707)
Fix button unique_id migration
2023-07-02 22:50:29 -04:00
Aaron BachandPaulus Schoutsen 910aecb33b Fix implicit device name for SimpliSafe locks (#95681) 2023-07-02 22:50:28 -04:00
J. Nick KostonandPaulus Schoutsen ca20663c31 Handle missing or incorrect device name and unique id for ESPHome during manual add (#95678)
* Handle incorrect or missing device name for ESPHome noise encryption

If we did not have the device name during setup we could never
get the key from the dashboard. The device will send us
its name if we try encryption which allows us to find the
right key from the dashboard.

This should help get users unstuck when they change the key
and cannot get the device back online after deleting and
trying to set it up again manually

* bump lib to get name

* tweak

* reduce number of connections

* less connections when we know we will fail

* coverage shows it works but it does not

* add more coverage

* fix test

* bump again
2023-07-02 22:50:27 -04:00
Brandon RothweilerandPaulus Schoutsen 327a54e65a Upgrade pymazda to 0.3.9 (#95655) 2023-07-02 22:50:26 -04:00
e907585b7f Add bmw connected drive region-specific scan interval (#95649)
Add region-specific scan interval

Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2023-07-02 22:50:25 -04:00
dougiteixeiraandPaulus Schoutsen 3fa009b98c 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:50:24 -04:00
226f1d7c73 Fix missing EntityDescription names in Overkiz (#95583)
* Fix labels

* Update homeassistant/components/overkiz/entity.py

* Check if description.name is string

---------

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2023-07-02 22:50:23 -04:00
J. Nick KostonandGitHub 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
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
Joost LekkerkerkerandGitHub 7fdbc7b75d Clean up solarlog const file (#95542)
Move platform specifics to their own file
2023-07-02 22:43:14 -04:00
Allen PorterandGitHub 7d6595f755 Delete the local calendar store when removing the config entry (#95599)
* Delete calendar store when removing the config entry

* Unlink file on remove with tests
2023-07-02 22:42:39 -04:00
792525b7a2 Add entity translations for Meater (#95732)
* Add entity translations for Meater

* Update homeassistant/components/meater/sensor.py

---------

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-07-02 22:41:46 -04:00
Joost LekkerkerkerandGitHub 4551954c85 Add entity translations to LaCrosse View (#95686) 2023-07-02 21:56:37 -04:00
J. Nick KostonandGitHub b24c6adc75 Avoid regex for negative zero check in sensor (#95691)
* Avoid regex for negative zero check in sensor

We can avoid calling the regex for every sensor value
since most of the time values are not negative zero

* tweak

* tweak

* Apply suggestions from code review

* simpler

* cover

* safer and still fast

* safer and still fast

* prep for py3.11

* fix check

* add missing cover

* more coverage

* coverage

* coverage
2023-07-02 21:53:50 -04:00
Mike WoudenbergandGitHub ab50069918 Quality improvement on LOQED integration (#95725)
Remove generated translation
Raise error correctly
Remove obsolete consts
Remove callback, hass assignment and info log
Use name from LOQED API instead of default name
Correct entity name for assertion
2023-07-02 21:52:52 -04:00
Joost LekkerkerkerandGitHub 33bc1f01a4 Add entity translations for lifx (#95727) 2023-07-02 21:42:02 -04:00
Joost LekkerkerkerandGitHub b2611b595e Use DeviceInfo object for Meater (#95733)
Use DeviceInfo object
2023-07-02 21:36:53 -04:00
Joost LekkerkerkerandGitHub 259455b32d Add entity translations to melnor (#95734) 2023-07-02 21:36:27 -04:00