Commit Graph

17056 Commits (001dda63450cd971902cb226b9176481d149ad6a)

Author SHA1 Message Date
J. Nick Koston 56257b7a38
Restore passive bluetooth entity data at startup (#97462) 2023-08-06 20:25:18 -10:00
J. Nick Koston 1adfa6bbeb
Reduce overhead to start a config entry flow by optimizing fetching the handler (#97883) 2023-08-06 20:25:03 -10:00
Franck Nijhof 369a484a78
Add default headers to webserver responses (#97784)
* Add default headers to webserver responses

* Set default server header

* Fix other tests
2023-08-06 23:25:13 -04:00
Franck Nijhof 3df71eca45
Ensure webhooks take HA cloud into account (#97801)
* Ensure webhooks take HA cloud into account

* Avoid circular import
2023-08-06 23:23:52 -04:00
Jan Bouwhuis 3969de6c76
Freeze time for whirlpool test to avoid fail (#97935) 2023-08-06 12:37:06 -10:00
Luke c9edc973f0
Bump python-roborock to 0.32.2 (#97907)
* bump to 0.32.2

* fix test
2023-08-06 22:34:14 +02:00
Joost Lekkerkerker 42bca0f94a
Complete test coverage for OpenSky (#97863)
* Use mockobject for OpenSky testing

* Complete test coverage for OpenSky

* Complete test coverage for OpenSky

* Use method patching
2023-08-06 19:39:24 +02:00
Johannes Wagner c4a5373976
Handle explicit Modbus NaN values (#90800)
Co-authored-by: jan iversen <jancasacondor@gmail.com>
2023-08-06 13:47:54 +02:00
J. Nick Koston 00e78fbf19
Cache envoy auth tokens to ensure integration works if cloud is offline (#97872) 2023-08-05 14:51:19 -10:00
J. Nick Koston 02e546e3ef
Refactor enphase_envoy to use pyenphase library (#97862) 2023-08-05 13:33:16 -10:00
J. Nick Koston a09090bf99
Do not fire homekit_controller events from IP polling (#97869)
* Fix homekit_controller triggers when value is None

* fixes

* cover
2023-08-06 00:31:50 +02:00
Ernst Klamer 0caeac1a82
Add support for toothbrushes to xiaomi-ble (#97276)
* Add support for toothbrushes to xiaomi-ble

* use str for string
2023-08-05 23:13:21 +02:00
Richard Kroegel 74d02a1574
BMW: Remove deprecated refresh from cloud button (#97864)
* Remove deprecated refresh from cloud button

* Clean up strings.json
2023-08-05 22:28:24 +02:00
Jan Bouwhuis 2e8e5aabae
Refactor alexa modules to avoid circular deps (#97618)
* Refactor alexa modules to avoid circula deps

* Add test http api auth and AlexaConfig

* Update test

* Improve test
2023-08-05 21:32:53 +02:00
Robert Svensson e43ad1c6a0
Add restart device to UniFi button platform (#97642)
* Add restart device to UniFi Button platform

* Add tests for button platform

* Small corrections
2023-08-05 20:07:20 +02:00
G Johansson 249fa513c9
Bump pysensibo to 1.0.33 (#97853)
* Bump pysensibo to 1.0.33

* for loop
2023-08-05 19:02:44 +02:00
G Johansson a22aa285d3
Fix Melcloud import issue (#97673)
* Fix Melcloud import issue

* remove old issue

* Simplify

* Update homeassistant/components/melcloud/strings.json

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update homeassistant/components/melcloud/strings.json

* Update homeassistant/components/melcloud/strings.json

* Apply suggestions from code review

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-08-05 17:00:33 +02:00
G Johansson 2e263560ec
Fix Command Line template error when data is None (#97845)
Command Line template error
2023-08-05 16:21:39 +02:00
G-Two c5e5567912
Add device tracker to Subaru integration (#79492)
* Add device tracker to subaru integration

* Fix timestamp in device tracker

* Add test for device tracker

* Incorporate PR review comments

* Apply suggestions from code review

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Incorporate code review comments

* Add tests for bad device tracker data

* Check device tracker data is available in entity

---------

Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2023-08-05 15:52:20 +02:00
Franck Nijhof b286da211a
Add is_admin check to check configuration API (#97788) 2023-08-04 19:25:01 +02:00
Robert Svensson 66cb407e4f
Improve counting of UniFi WLAN Clients sensor (#97785) 2023-08-04 19:22:46 +02:00
karwosts 41eca41638
Handle Alert exception on notification failure (#93632) 2023-08-04 14:08:49 +02:00
uvjustin 9282cb21ab
Raise PlatformNotReady on initial OwnTone connection failure (#97257) 2023-08-04 12:54:54 +02:00
Marc Mueller 3f5a21dce4
Fix mailbox PytestCollectionWarning (#97740) 2023-08-04 12:31:32 +02:00
Marc Mueller 447479d0a0
Add packaging as default requirement (#97712) 2023-08-04 12:29:18 +02:00
Marc Mueller cd8d6ecd81
Fix recorder DeprecationWarnings (#97738) 2023-08-04 11:32:51 +02:00
Marc Mueller b23b2ac2e8
Fix http test DeprecationWarnings (#97737) 2023-08-04 11:32:23 +02:00
Marc Mueller f39a35c4ef
Fix jinja2 DeprecationWarnings (#97728) 2023-08-04 11:25:08 +02:00
Marc Mueller c33e3ce212
Fix core test RuntimeWarnings (#97730) 2023-08-04 11:21:57 +02:00
Marc Mueller e905ac173f
Fix command_line tests RuntimeWarnings (#97731) 2023-08-04 09:34:55 +02:00
Marc Mueller 99145d46d2
Fix keymitt_ble RuntimeWarning (#97729) 2023-08-04 09:34:04 +02:00
Luke df45e52dc5
Add battery sensor to Roborock (#97715)
* add battery sensor

* Remove translation for battery

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-08-04 09:28:48 +02:00
Marc Mueller 37885400c9
Fix mqtt test DeprecationWarnings (#97734) 2023-08-04 09:21:36 +02:00
Nathan Spencer 615d7f0da7
Add ability to remove Litter-Robot if no longer provided by integration (#97702) 2023-08-03 20:30:03 -10:00
J. Nick Koston 0cc80a9d29
Add OUI to tplink diagnostics (#97646)
* Add OUI to tplink diagnostics

The main reason discovery does not work for new devices is we
are missing the OUI. Since we redact the whole mac address in
the diagnostics, this makes it difficult to fix. We now include
the OUI in the diagnostics

* fix: use cached mac

* fix: tests
2023-08-03 22:49:55 -04:00
Marc Mueller d1ad1c47e6
Fix zha test RuntimeWarnings (#97733) 2023-08-04 01:07:11 +02:00
Marc Mueller 52fc3c26d1
Fix yalex_ble test RuntimeWarning (#97732) 2023-08-03 12:55:18 -10:00
Paul Bottein 83af2f5b8b
Allow to sort options in select selector (#97680)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-08-03 21:49:22 +02:00
TheJulianJES bae5a3dbd6
Fix ZHA `turn_on` issues with `transition=0`, improve tests (#97539)
* Fix turn_on ignoring transition=0 and brightness=None, add test

This fixes light.turn_on for ZHA lights ignoring a transition of 0 when no brightness is given at the same time.
It also adds a test for that case.

Fixes https://github.com/home-assistant/core/issues/93265

* Add test for "force on" lights

This test checks that "force on" lights also get an "on" command (in addition to the "move to level" command) when turn_on is called with only transition=0.

* Fix "on" command sent for transition=0 calls, fix FORCE_ON missing for transition=0

This fixes an issue where the "on" command is sent in addition to a "move_to_level_with_on_off" command, even though the latter one is enough (for non-FORCE_ON lights).
It also fixes the test to not expect the unnecessary "on" command (in addition to the expected "move_to_level_with_on_off" command).

The `brightness != 0` change is needed to fix an issue where FORCE_ON lights did not get the required "on" command (in addition to "move_to_level_with_on_off") if turn_on was called with only transition=0.
(It could have been `brightness not None`, but that would also send an "on" command if turn_on is called with brightness=0 which HA somewhat "supports". The brightness != 0 check avoids that issue.)

* Improve comments in ZHA light class
2023-08-03 15:20:40 -04:00
Meow 6fd60024cc
Refactored deprecated UNITS (#97368) 2023-08-03 21:12:01 +02:00
Nick Iacullo 6f8d666b57
Enable the `PRESET_MODE` `FanEntityFeature` for VeSync air purifiers (#97657) 2023-08-03 18:30:56 +02:00
G Johansson 4c395c0124
Fix date and timestamp device class in Command Line Sensor (#97663)
* Fix date in Command Line sensor

* prettier
2023-08-03 13:59:37 +02:00
J. Nick Koston db5d1b10ea
Fix tplink child plug state reporting (#97658)
regressed in https://github.com/home-assistant/core/pull/96246
2023-08-03 12:35:22 +02:00
Marc Mueller 1daac46635
Replace deprecated pkg_resources with importlib.metadata (#97628) 2023-08-03 09:14:00 +02:00
Michael Hansen 7cf2199e8b
Bump intents to 2023.8.2 (#97636) 2023-08-02 20:01:30 -04:00
Marc Mueller 9d9af0c884
Fix pylint DeprecationWarnings (#97627) 2023-08-02 20:30:41 +02:00
Marc Mueller 887e48c440
Replace deprecated aiohttp_unused_port fixture (#97626) 2023-08-02 20:30:13 +02:00
Marc Mueller 1a77121c02
Fix aiohttp code DeprecationWarnings (#97621) 2023-08-02 20:28:18 +02:00
Bruno Enten 3ce05314e0
use write_registers also for target temp (#97475) 2023-08-02 13:36:05 +02:00
Robert Resch e4303e4534
Add rounding back when unique_id is not set (#97603) 2023-08-02 11:26:25 +02:00