Commit Graph

17298 Commits (fe164d06a7e6a4344581d27aad8b653a2108735b)

Author SHA1 Message Date
Michael 533a8beac2
Raise ConfigEntryNotReady when unable to connect during setup of AVM Fritz!Smarthome (#97985) 2023-08-14 10:42:20 +02:00
Kevin Stillhammer 066db11620
Exchange WazeRouteCalculator with pywaze in waze_travel_time (#98169)
* exchange WazeRouteCalculator with pywaze

* directly use async is_valid_config_entry

* store pywaze client as property

* fix tests

* Remove obsolete error logs

* Reuse existing httpx client

* Remove redundant typing

* Do not clcose common httpx client
2023-08-14 10:02:30 +02:00
J. Nick Koston 790c1bc251
Decrease event loop latency by binding time.monotonic to loop.time directly (#98288)
* Decrease event loop latency by binding time.monotonic to loop.time directly

This is a small improvment to decrease event loop latency. While the goal is
is to reduce Bluetooth connection time latency, everything using asyncio
is a bit more responsive as a result.

* relo per comments

* fix too fast by adding resolution, ensure monotonic time is patchable by freezegun

* fix test that freezes time too late and has a race loop
2023-08-13 20:37:45 -04:00
Chris 5b6a7edd8d
Add Unifi outlet switches for PDU devices (#98320)
Updates the Unifi outlet switching feature to support PDU devices
2023-08-13 20:06:12 +02:00
Jan Bouwhuis e5f7d83912
Update entity feature constants google_assistant (#98335)
* Update entity feature constants google_assistant

* Update tests

* Direct import

* Some missed constants

* Add fan and cover feature imports
2023-08-13 17:17:47 +02:00
Jan Bouwhuis fa6ffd994a
Update vacuum entity constants for Alexa tests (#98336)
* Update vacuum entity constants for Alexa tests

* Import VacuumEntityFeature
2023-08-13 15:35:00 +02:00
Jan Bouwhuis b36681b318
Update homekit entity feature constants (#98337) 2023-08-13 15:33:36 +02:00
Bouwe Westerdijk b41d3b465c
Add domestic_hot_water_setpoint number to Plugwise (#98092)
* Add max_dhw_temperature number

* Update strings.json

* Add related tests

* Correct test

* Black-fix
2023-08-13 12:57:34 +02:00
tronikos bdaa2285fc
Google Assistant SDK: Allow responses for send_text_command (#95966)
google_assistant_sdk.send_text_command response
2023-08-12 16:20:01 -04:00
Chris 87753bdb82
Add UniFi power stats for PDU overall AC outlet metrics (#98217) 2023-08-12 18:12:59 +02:00
Erik Montnemery ae8f9dcb77
Modernize ipma weather (#98062)
* Modernize ipma weather

* Add test snapshots

* Don't include forecast mode in weather entity unique_id for new config entries

* Remove old migration code

* Remove outdated test
2023-08-12 15:15:09 +02:00
Erik Montnemery 97f3199d6d
Do not add entities with invalid device info (#98150) 2023-08-11 13:14:47 +02:00
Joakim Plate 990ec1d445
Make gardena closing sensor unavailable when closed (#98133) 2023-08-11 13:07:45 +02:00
Allen Porter a0ac8ba5a6
Enforce a minimum temperature range for nest thermostats (#98238) 2023-08-11 12:21:19 +02:00
Erik Montnemery 2e1a5ddf2b
Don't allow creating device if config entry does not exist (#98157)
* Don't allow creating device if config entry does not exist

* Fix test

* Update test
2023-08-10 22:09:13 -04:00
Erik Montnemery 045c327928
Move DeviceInfo from entity to device registry (#98149)
* Move DeviceInfo from entity to device registry

* Update integrations
2023-08-10 22:04:26 -04:00
Franck Nijhof 296c27859e
Fix issue registry sending unneeded update events (#98230) 2023-08-10 21:57:42 -04:00
G Johansson aacb8aecfc
Refactor Rest Sensor with ManualTriggerEntity (#97396)
* ManualTriggerEntity for rest sensor

* add availability test

* review comments

* last fixes
2023-08-10 21:46:56 +02:00
Erik Montnemery 4e8b81370e
Adjust device_registry tests which create devices (#98215) 2023-08-10 19:28:33 +02:00
Erik Montnemery c7b4d4f361
Adjust helpers tests which create devices (#98214) 2023-08-10 19:28:16 +02:00
Erik Montnemery f1d4a4bd26
Adjust zwave_js tests which create devices (#98213) 2023-08-10 18:27:22 +02:00
Erik Montnemery 49011f0158
Adjust hue tests which create devices (#98195) 2023-08-10 18:27:05 +02:00
Erik Montnemery 3fdc98063e
Adjust bond tests which create devices (#98183) 2023-08-10 18:26:44 +02:00
Erik Montnemery fcdfeb74c8
Adjust smartthings tests which create devices (#98207) 2023-08-10 18:26:20 +02:00
Erik Montnemery 6803a62368
Adjust ruckus_unleashed tests which create devices (#98206) 2023-08-10 18:26:13 +02:00
Erik Montnemery b11dc50f9e
Adjust homekit_controller tests which create devices (#98194) 2023-08-10 18:25:53 +02:00
Erik Montnemery e1e4b0dcf0
Adjust device_automation tests which create devices (#98187) 2023-08-10 18:25:42 +02:00
Erik Montnemery 57d0fd7bb1
Adjust derivative tests which create devices (#98186) 2023-08-10 18:25:28 +02:00
Chris fe1f617a35
Add unifi power stats for PDU outlets (#98081)
Adds support for power stats for PDU outlets.
2023-08-10 18:25:03 +02:00
Erik Montnemery c1b47b88f2
Adjust utility_meter tests which create devices (#98212) 2023-08-10 18:24:47 +02:00
Erik Montnemery 05ac67eba2
Adjust unifi tests which create devices (#98211) 2023-08-10 18:24:42 +02:00
Erik Montnemery fb1bb0d374
Adjust switch_as_x tests which create devices (#98210) 2023-08-10 18:24:39 +02:00
Erik Montnemery 8813140ed5
Adjust threshold tests which create devices (#98208) 2023-08-10 18:24:36 +02:00
Erik Montnemery 6ea7011a07
Adjust ps4 tests which create devices (#98205) 2023-08-10 18:24:25 +02:00
Erik Montnemery 7b157baed6
Adjust plex tests which create devices (#98204) 2023-08-10 18:24:22 +02:00
Erik Montnemery 9d3be60b05
Adjust openai_conversation tests which create devices (#98203) 2023-08-10 18:24:19 +02:00
Erik Montnemery 13a9b83ed3
Adjust mqtt tests which create devices (#98202) 2023-08-10 18:23:55 +02:00
Erik Montnemery 0b69f37d57
Adjust motioneye tests which create devices (#98201) 2023-08-10 18:23:51 +02:00
Erik Montnemery bd4d1abc28
Adjust mikrotik tests which create devices (#98200) 2023-08-10 18:23:48 +02:00
Erik Montnemery 9831498259
Adjust mazda tests which create devices (#98199) 2023-08-10 18:23:44 +02:00
Erik Montnemery e9a0436605
Adjust matter tests which create devices (#98198) 2023-08-10 18:23:41 +02:00
Erik Montnemery 3495d762a4
Adjust kraken tests which create devices (#98197) 2023-08-10 18:23:37 +02:00
Erik Montnemery 3e6c844048
Adjust integration tests which create devices (#98196) 2023-08-10 18:23:33 +02:00
Erik Montnemery 07b19b3dd9
Adjust homekit tests which create devices (#98193) 2023-08-10 18:23:17 +02:00
Erik Montnemery 4329a47ef8
Adjust google_generative_ai_conversation tests which create devices (#98192) 2023-08-10 18:23:13 +02:00
Erik Montnemery f11f7ac45c
Adjust google_assistant tests which create devices (#98191) 2023-08-10 18:23:10 +02:00
Erik Montnemery 983ebeff80
Adjust freebox tests which create devices (#98190) 2023-08-10 18:22:44 +02:00
Erik Montnemery 52183d64ae
Adjust fibaro tests which create devices (#98189) 2023-08-10 18:22:39 +02:00
Erik Montnemery ec143b26d7
Adjust device_tracker tests which create devices (#98188) 2023-08-10 18:22:33 +02:00
Erik Montnemery da53944a37
Adjust conversation tests which create devices (#98185) 2023-08-10 18:22:17 +02:00
Erik Montnemery 5909a1187d
Adjust config tests which create devices (#98184) 2023-08-10 18:22:12 +02:00
Erik Montnemery f77387bd0f
Adjust asuswrt tests which create devices (#98182) 2023-08-10 18:21:46 +02:00
RoboMagus f0e9dccb58
Only handle shell commands output when return_response requested (#97777) 2023-08-10 18:11:15 +02:00
Álvaro Fernández Rojas 4981eadd31
Update aioairzone to v0.6.5 (#98163)
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2023-08-10 16:47:16 +02:00
Joost Lekkerkerker a7f7f56342
Implement opensky data update coordinator (#97925)
Co-authored-by: Robert Resch <robert@resch.dev>
2023-08-10 15:42:46 +02:00
Franck Nijhof 868a5f377f
Ruff: isort don't split imports based on trailing comma (#98162) 2023-08-10 14:27:03 +02:00
G Johansson 4531dbbe62
Refactor Rest Binary sensor with ManualTriggerEntity (#97400)
* Refactor Rest Binary sensor w/ ManualTriggerEntity

* test availability

* review comments

* Use super

* Fix config
2023-08-10 12:59:23 +02:00
Jan Bouwhuis b872d74b1f
Fix lingering test alexa (#98128) 2023-08-10 12:16:52 +02:00
Raman Gupta 5d3d66e47d
Bump zwave-js-server-python to 0.50.1 (#94760)
* Bump zwave-js-server-python to 0.50.0

* handle additional upstream changes

* Additional changes

* fix tests

* Convert two similar functions to be one function

* Fix docstring

* Remove conditional pydantic import

* Revert scope change

* Bump zwave-js-server-python

* Set default return value for command

* Remove line breaks

* Add coverage
2023-08-10 01:28:08 -04:00
Robert Svensson 02c27d8ad2
UniFi WLAN availability affected by WLAN enabled (#98020) 2023-08-09 18:52:35 +02:00
G Johansson 4c03077dfe
Add product filtering feature to Trafikverket Train (#86343) 2023-08-09 17:20:30 +02:00
Erik Montnemery 0317afeb17
Fix mock_integration and mock_platform test helpers (#98109) 2023-08-09 15:38:57 +02:00
David Knowles 023f2f8bb7
Add switch platform to Schlage (#98004)
* Add switch platform to Schlage

* Add a generic SchlageSwitch

* Use an is_on property instead of _attr_is_on

* Make value_fn always return a bool
2023-08-09 15:32:50 +02:00
Jan Bouwhuis 5c9bce9eac
Allow float for inital MQTT climate temperature (#97995)
* Allow float for inital MQTT climate temperature

* Update tests/components/mqtt/test_climate.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-08-08 23:44:49 +02:00
Erik Montnemery a77009c3ca
Patch dt_util.utcnow earlier (#98050) 2023-08-08 19:16:52 +02:00
G Johansson d557f3b742
Add state attributes translation and available modes for Sensibo (#85234)
* Sensibo translation climate

* Add available states

* Fix keys

* Delete en.json

* invalid fan_mode and swing_mode

* Translations

* Add back sorting

* Fix fan_mode and swing_mode

* Fix raise error

* review
2023-08-08 19:13:56 +02:00
jan iversen fc463e5831
modbus: remove unused constants and get 100% coverage. (#97779) 2023-08-08 16:40:16 +02:00
Tom 4a4523c249
Bump plugwise to v0.31.9 (#97203)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Co-authored-by: Bouwe <bouwe.s.westerdijk@gmail.com>
2023-08-08 16:38:37 +02:00
Erik Montnemery 0d55a7600e
Modernize met_eireann weather (#98030) 2023-08-08 14:21:52 +02:00
Jadson Santos f6273bfca5
Add prometheus requires_auth parameter (#92964)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-08-08 12:15:08 +02:00
Franck Nijhof 40e256847c
Add is_admin checks to scene/script/automation APIs (#98025) 2023-08-08 12:11:52 +02:00
Jan Bouwhuis 0614702f98
Alexa typing part 5 (smart_home) (#97918)
* smart_home

* Fix test_disabled

* Remove unused type ignore
2023-08-08 11:48:50 +02:00
Erik Montnemery 1ee0c907b0
Improve OTBR factory reset (#98017)
Co-authored-by: Stefan Agner <stefan@agner.ch>
2023-08-08 11:38:01 +02:00
Franck Nijhof 5e020ea354
Add is_admin checks to cloud APIs (#97804) 2023-08-08 11:02:42 +02:00
Franck Nijhof dacfa4b4dc
Set up shopping list during onboarding (#97974)
Co-authored-by: Simon Lamon <32477463+silamon@users.noreply.github.com>
2023-08-08 10:32:35 +02:00
Michael Hansen 7ea2998b55
Add wake word integration (#96380)
* Add wake component

* Add wake support to Wyoming

* Add helper function to assist_pipeline (not complete)

* Rename wake to wake_word

* Fix platform

* Use send_event and clean up

* Merge wake word into pipeline

* Add wake option to async_pipeline_from_audio_stream

* Add start/end stages to async_pipeline_from_audio_stream

* Add wake timeout

* Remove layer in wake_output

* Use VAD for wake word timeout

* Include audio metadata in wake-start

* Remove unnecessary websocket command

* wake -> wake_word

* Incorporate feedback

* Clean up wake_word tests

* Add wyoming wake word tests

* Add pipeline wake word test

* Add last processed state

* Fix tests

* Add tests for wake word

* More tests for the codebot
2023-08-07 22:22:16 -04:00
Matthias Alphart 0f5d423d1e
Move KNX keyring validation and storage to helper module (#97931)
* Move KNX keyfile validation and store to helper module

* Rename module and fix tests
2023-08-07 23:30:14 +02:00
J. Nick Koston 987897b0fa
Add support for Yale Doorman to august (#97997) 2023-08-07 11:28:01 -10:00
J. Nick Koston c8256d1d3d
Optimize august timings to prepare for Yale Doorman support (#97940) 2023-08-07 11:09:32 -10:00
J. Nick Koston d304d42051
Restore qingping state when device becomes available (#97980) 2023-08-07 09:27:18 -10:00
J. Nick Koston 56c2276630
Restore sleepy oralb devices state at startup (#97983) 2023-08-07 09:19:46 -10:00
J. Nick Koston b7f936fcdd
Restore govee_ble state when gateway device becomes available (#97984) 2023-08-07 09:13:50 -10:00
J. Nick Koston fb12c237ab
Restore xiaomi_ble state at start when device is in range or sleepy (#97979) 2023-08-07 07:58:27 -10:00
Ståle Storø Hauknes b34ce3c792
Improve airthings ble (#97905)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-08-07 07:15:51 -10:00
J. Nick Koston a234ab51fe
Restore bthome state at start when device is in range or sleepy (#97949) 2023-08-07 18:41:53 +02:00
David Knowles a4721e9b36
Schlage: Set the changed by attribute on locks based on log messages (#97469) 2023-08-07 06:07:48 -10:00
G Johansson c4da5374ae
Refactor Trafikverket Train to improve config flow (#97929)
* Refactor tvt

* review fixes

* review comments
2023-08-07 17:25:02 +02:00
G Johansson 15eed166ec
Modernize SMHI weather (#97275)
* SMHI forecast service

* Mod weather

* reset weather

* Fix tests

* coverage

* add test
2023-08-07 17:24:43 +02:00
Erik Montnemery 683c2f8d22
Add service for getting a weather forecast (#97078)
* Add service for getting a weather forecast

* Fix translations

* Improve service description

* Improve error handling

* Adjust typing

* Adjust typing

* Adjust service response format
2023-08-07 14:05:37 +02:00
tronikos 0a2ff3a676
Android TV Remote: Fix missing key and cert when adding a device via IP address (#97953)
Fix missing key and cert
2023-08-07 14:01:35 +02:00
Marc Mueller cf4287cd0c
Fix alexa test RuntimeWarning (#97956) 2023-08-07 12:57:37 +02:00
starkillerOG d72057f41b
Add repair issue for Reolink when using it with an incompatible global ssl certificate (#91597) 2023-08-07 11:52:14 +02:00
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
Franck Nijhof af5fc7e759
Ensure load the device registry if it contains invalid configuration URLs (#97589) 2023-08-01 23:15:31 +02:00
J. Nick Koston 708b00d7ab
Use legacy rules for ESPHome entity_id construction if `friendly_name` is unset (#97578) 2023-08-01 21:08:12 +02:00
Pedro Lamas 3f5c0a1285
Fixes London Air parsing error (#97557) 2023-08-01 11:04:30 +02:00
Michael Hansen 8ad37d7640
Send language to Wyoming STT (#97344) 2023-08-01 10:05:01 +02:00
Jan Bouwhuis 9c6c391eea
Offer work- a-round for MQTT entity names that start with the device name (#97495)
Co-authored-by: SukramJ <sukramj@icloud.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-08-01 10:03:08 +02:00
Jan Bouwhuis a8a3b6778e
Fix unit tests for wake_on_lan (#97542) 2023-07-31 21:16:58 +02:00
J. Nick Koston 094f2cbad7
Fix saving subclassed datetime objects in storage (#97502) 2023-07-31 18:49:02 +02:00
Joost Lekkerkerker c2e9fd85c2
Fix RootFolder not iterable in Radarr (#97537)
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-07-31 18:44:03 +02:00
J. Nick Koston e7069d48be
Load homekit_controller test data using its json loader (#97534) 2023-07-31 07:04:41 -07:00
epenet 83db3c48c2
Fix unused variable in Renault tests (#97529) 2023-07-31 12:35:30 +02:00
epenet 927905ac84
Handle http error in Renault initialisation (#97530) 2023-07-31 12:17:51 +02:00
J. Nick Koston 28bebf338f
Fix xiaomi_ble not remembering a device is a sleepy device (#97518) 2023-07-31 01:02:36 -07:00
J. Nick Koston 7bda873c2a
Fix bthome not remembering a device is a sleepy device (#97517) 2023-07-31 01:02:15 -07:00
starkillerOG b266514068
Delay creation of Reolink repair issues (#97476)
* delay creation of repair issues

* fix tests
2023-07-31 09:07:13 +02:00
Meow a4b2ded503
Refactor deprecated RESULT_TYPE_* (#97367) 2023-07-30 19:27:30 +02:00
Chris Talkington 9d2f52dbc5
Allow deleting config entry devices in jellyfin (#97377) 2023-07-30 18:42:28 +02:00
Maciej Bieniek 12426dfad4
Add entity translations for AccuWeather (#95940)
* Add entity name translations

* Some improvements

* Update tests

* Suggested changes

* day 0 -> today

* night 0 -> tonight

* Fix precipitation
2023-07-29 21:22:53 +02:00
Michael 750260b266
Add more sensors to PEGELONLINE (#97295)
* add further sensors

* adjust and improve tests

* add device classes were applicable

* fix doc string

* name for ph comes from device class

* use icon from device class for ph sensor
2023-07-29 17:03:29 +02:00
David Knowles 0e8bbbd3d9
Add a battery sensor to Schlage (#97369) 2023-07-28 21:09:25 -07:00
J. Nick Koston 13349e76ed
Avoid firing update coordinator callbacks when nothing has changed (#97268) 2023-07-28 12:19:20 -05:00
Michael Hansen 7e3fdd85fc
Add wildcards to sentence triggers (#97236)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-07-27 20:30:42 +02:00
Franck Nijhof 737ac8c600
Fix DeviceInfo configuration_url validation (#97319) 2023-07-27 18:57:01 +02:00
Marcel van der Veldt 7ada88eab3
Hue event entity follow up (#97336) 2023-07-27 16:58:09 +02:00
Jan Bouwhuis 3fcfe7d0c6
Set mqtt entity name to `null` when it is a duplicate of the device name (#97304) 2023-07-27 09:23:23 +02:00
David Knowles b31cfe0b24
Add Schlage integration (#93777)
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2023-07-26 23:15:01 -05:00
J.P. Krauss 7113db8da4
Improve AirNow Configuration Error Handling (#97267)
* Fix config flow error handling when no data is returned by AirNow API

* Add test for PyAirNow EmptyResponseError

* Typo Fix
2023-07-26 21:30:25 +02:00
Marcel van der Veldt 2ae059d4fc
Add Event platform/entity to Hue integration (#97256)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-07-26 16:42:01 +02:00
Joost Lekkerkerker d233438e1a
Handle UpdateFailed for YouTube (#97233) 2023-07-26 15:09:15 +02:00
Marcel van der Veldt fd44bef39b
Add Event platform to Matter (#97219) 2023-07-26 12:19:23 +02:00
Paulus Schoutsen aad281db18
Add service to OpenAI to Generate an image (#97018)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-07-26 10:14:18 +02:00
Michael 5caa1969c5
Add Pegel Online integration (#97028) 2023-07-26 09:12:39 +02:00
Jc2k c0debaf26e
Add event entities to homekit_controller (#97140)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-07-26 08:20:41 +02:00
Amos Yuen d0512d5b26
Stop rounding history_stats sensor (#97195) 2023-07-26 08:09:50 +02:00
Robert Svensson 89069bb9b8
Add WLAN clients reporting to UniFi Sensor platform (#97234) 2023-07-26 08:00:17 +02:00
Michael Hansen 311c321d06
Add HassShoppingListAddItem to default agent (#97232)
* Bump hassil and intents package for HassShoppingListAddItem

* Remove hard-coded response text

* Test adding item to the shopping list

* Hook removed import in test for some reason
2023-07-25 22:19:03 -04:00
mkmer c6f21b47a8
Whrilpool add periodic update (#97222) 2023-07-25 22:23:31 +02:00
Joost Lekkerkerker 585d357129
Add config flow to OpenSky (#96912)
Co-authored-by: Sander <developer@golles.nl>
2023-07-25 20:46:04 +02:00
J. Nick Koston 6ae79524bd
Add support for bleak 0.21 (#97212) 2023-07-25 19:30:54 +02:00
Robert Svensson 8d6c4e3306
Add controls to enable and disable a UniFi WLAN (#97204) 2023-07-25 14:01:57 +02:00
Jan-Philipp Benecke a0b61a1188
Bump pydiscovergy to 2.0.1 (#97186) 2023-07-25 13:58:38 +02:00
Jan Bouwhuis fb00cd8963
Add turn on/off support for mqtt water_heater (#97197) 2023-07-25 13:33:02 +02:00
Luke 6c43ce69d3
Add time platform to Roborock (#94039) 2023-07-25 13:29:48 +02:00
Maikel Punie 7f049c5b20
Add the Duotecno intergration (#96399)
Co-authored-by: Isak Nyberg <36712644+IsakNyberg@users.noreply.github.com>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-07-25 11:16:00 +02:00
Matthias Alphart 74deb8b011
Add datetime platform to KNX (#97190) 2023-07-25 11:04:05 +02:00
Michael Arthur 6ef7c5ece6
Add electric kiwi integration (#81149)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-07-25 10:46:53 +02:00
Joost Lekkerkerker 04f6d1848b
Implement YouTube async library (#97072) 2023-07-25 10:18:20 +02:00
Jan Bouwhuis 714a04d603
Add service turn_on and turn_off service for water_heater (#94817) 2023-07-25 10:16:05 +02:00
Robert Svensson 06f97679ee
Add WLAN QR code support to UniFi Image platform (#97171) 2023-07-25 10:11:48 +02:00
Adrián Moreno f2726527f2
Create zwave_js repair issue instead of warning log entry (#95997)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-07-25 09:55:05 +02:00
Mike Woudenberg 945fffebcc
Use get_url to get Home Assistant instance for Loqed webhook (#95761) 2023-07-25 08:27:18 +02:00
G Johansson c312dcbc4b
Scrape refactor to ManualTriggerEntity (#96329) 2023-07-25 00:54:19 +02:00
Guido Schmitz 6717e40114
Use snapshots in devolo Home Network button tests (#95141)
Use snapshots
2023-07-25 00:20:09 +02:00
Álvaro Fernández Rojas d1e96a356a
Add Airzone Cloud Aidoo binary sensors (#95607)
airzone_cloud: add Aidoo binary sensors

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2023-07-24 23:27:33 +02:00
starkillerOG 8a58675be2
Reolink improve webhook URL error message (#96088)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-07-24 22:01:45 +02:00
Ernst Klamer 28197adebd
Add support for sleepy Xiaomi BLE sensors (#97166) 2023-07-24 21:13:16 +02:00
Matthias Alphart 8ff9f2ddbe
Add date platform to KNX (#97154) 2023-07-24 21:12:37 +02:00
Joost Lekkerkerker 2dc86364f3
Migrate TPLink to has entity name (#96246) 2023-07-24 20:49:40 +02:00
elmurato 557b6d511b
Improve reading of MOTD and bump mcstatus to 11.0.0 (#95715)
* Improve reading of MOTD, bump mcstatus to 10.0.3 and getmac to 0.9.4

* Revert bump of getmac

* Bump mcstatus to 11.0.0-rc3. Use new MOTD parser.

* Bump mcstatus to 11.0.0
2023-07-24 20:23:11 +02:00