Commit graph

18191 commits

Author SHA1 Message Date
Franck Nijhof
07f03d9ec9
Set suggested display precision for HomeWizard Energy power sensors (#103369) 2023-11-04 15:40:50 +01:00
Franck Nijhof
109944e4ff
Replace/restructure HomeWizard device fixtures to reflect reality (#103311) 2023-11-04 13:37:08 +01:00
Raman Gupta
2b3d57859e
Add test for firmware update scenario (#103314) 2023-11-04 13:12:06 +01:00
Ian
51c3a5d11d
Nextbus: Listify directions (#103337)
When a single value is returned, the list wrapper is not present in the
json payload. This patch ensures that the result is always a list.
2023-11-04 08:56:27 +01:00
Jan-Philipp Benecke
ae1117bc74
Fix failing entity reuse test (#103342)
* Fix failing entity reuse test

* One more test
2023-11-03 23:19:37 +01:00
Erik Montnemery
0ea0a1ed06
Prevent accidentally reusing an entity object (#102911)
* Prevent accidentally reusing an entity object

* Fix group reload service

* Revert "Fix group reload service"

* Improve test

* Add tests aserting entity can't be reused
2023-11-03 21:01:38 +01:00
Joakim Sørensen
921d6feae7
Remove extra from traccar webhook (#103319) 2023-11-03 17:44:48 +01:00
Raman Gupta
eeb88f5e07
Fix zwave_js cover bug for Window Covering CC values (#103289)
* Fix cover bug for Window Covering CC values

* update test

* Fix fixture

* Remove no-op line from test
2023-11-03 15:36:48 +01:00
Tom
2a31eb6762
Fix Plugwise Schedule selection (#103262) 2023-11-03 12:17:36 +01:00
Marcel van der Veldt
680162d494
Fix Matter 1.2 locks with specific unlatch/unbolt support (#103275) 2023-11-03 12:09:31 +01:00
Paul Bottein
89a9e6c6e8
Add trigger selector for blueprint (#103050) 2023-11-03 09:11:49 +01:00
Guido Schmitz
f5cc4dcf3e
Add MAC adress to devolo Home Network DeviceInfo (#103290)
Add MAC adress to devolo Home Network devices
2023-11-03 08:34:49 +01:00
G Johansson
12e1acfcfc
Cleanup weather test (#103090)
* Cleanup weather test

* rename

* Clean off not used MockWeatherCompat

* conftest

* more cleanup

* Fin mod tests

* fix others
2023-11-03 05:53:38 +01:00
Allen Porter
a95aa4e15f
Add config flow to CalDAV (#103215)
* Initial caldav config flow with broken calendar platform

* Set up calendar entities

* Remove separate caldav entity

* Update tests after merge

* Readbility improvements

* Address lint issues

* Apply suggestions from code review

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

* Add checking for duplicate configuration entries

* Use verify SSL as input into caldav and simplify test setup

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-11-02 19:48:56 -07:00
Kevin Stillhammer
06c9719cd6
Support multiple responses for service calls (#96370)
* add supports_response to platform entity services

* support multiple entities in entity_service_call

* support legacy response format for service calls

* revert changes to script/shell_command

* add back test for multiple responses for legacy service

* remove SupportsResponse.ONLY_LEGACY

* Apply suggestion

Co-authored-by: Allen Porter <allen.porter@gmail.com>

* test for entity_id remove None

* revert Apply suggestion

* return EntityServiceResponse from _handle_entity_call

* Use asyncio.gather

* EntityServiceResponse not Optional

* styling

---------

Co-authored-by: Allen Porter <allen.porter@gmail.com>
2023-11-02 18:37:35 -07:00
Jan Bouwhuis
b86f3be510
Optmize timing excecutor timeout test (#103276) 2023-11-02 20:00:34 -05:00
Abílio Costa
4a117c0a1e
Add buttons to connect/disconnect the Idasen Desk (#102433)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-11-02 19:57:48 -05:00
Denis Shulyaka
d18b2d8748
Shield service call from cancellation on REST API connection loss (#102657)
* Shield service call from cancellation on connection loss

* add test for timeout

* Apply suggestions from code review

* Apply suggestions from code review

* fix merge

* Apply suggestions from code review
2023-11-02 12:58:26 +01:00
Jan Bouwhuis
4a4d2ad743
Fix mqtt config validation error handling (#103210)
* Fix MQTT config check

* Fix handling invalid enity_category for sensors

* Improve docstr

* Update comment

* Use correct util for yaml dump
2023-11-02 10:57:00 +01:00
Allen Porter
fe482af561
Add modernized fitbit battery level sensor (#102500)
* Add modernized fitbit battery level sensor

* Use entity names for existing battery sensors

* Use icon from device class

* Update homeassistant/components/fitbit/strings.json

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

* Update tests with lower case naming

* Swap the names of the device battery sensors

* Revert "Swap the names of the device battery sensors"

This reverts commit c9516f6d06.

* Update homeassistant/components/fitbit/sensor.py

Co-authored-by: Jan Vaníček <janvanicek@post.cz>

* Improve typing

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Co-authored-by: Jan Vaníček <janvanicek@post.cz>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-11-02 10:22:27 +01:00
Luke Lashley
47d6d6c344
Add button platform to Roborock (#103010)
* add button platform to roborock

* Update tests/components/roborock/test_button.py

Co-authored-by: Duco Sebel <74970928+DCSBL@users.noreply.github.com>

* Remove device class

* improve tests

* sort platforms

---------

Co-authored-by: Duco Sebel <74970928+DCSBL@users.noreply.github.com>
2023-11-01 21:34:04 +01:00
Tudor Sandu
66dd3b153d
Support HassTurnOn/Off intents for lock domain (#93231)
* Support HassTurnOn/Off intents for lock domain

Fix https://github.com/home-assistant/intents/issues/1347

* Added tests

* Linting changes

* Linting
2023-11-01 09:46:13 -05:00
mkmer
4a93465e85
Catch unexpected response in Honeywell (#103169)
catch unexpected response
2023-11-01 15:41:41 +01:00
Jan Bouwhuis
daee5baef6
Fix mqtt is not reloading without yaml config (#103159) 2023-11-01 09:25:56 +01:00
Allen Porter
04dfbd2e03
Improve fitbit oauth token error handling in config flow (#103131)
* Improve fitbit oauth token error handling in config flow

* Apply suggestions from code review

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

* Update tests with updated error reason

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-10-31 19:48:33 -07:00
Teemu R
f944c68e01
Bump python-kasa to 0.5.4 for tplink (#103038) 2023-10-31 19:54:51 -05:00
J. Nick Koston
8eb7766f30
Avoid path construction for static files cache hit (#102882) 2023-10-31 14:31:58 -05:00
J. Nick Koston
9b27552238
Fix race in starting reauth flows (#103130) 2023-10-31 12:38:05 -05:00
Joost Lekkerkerker
d75a6a3b4b
Use right functions for fixtures in Freebox test (#103135) 2023-10-31 17:25:08 +01:00
Narmishka
f55cd17982
Move Freebox tests to fixtures (#103128) 2023-10-31 15:50:17 +00:00
Christopher Fenner
22126a1280
Handle exception introduced with recent PyViCare update (#103110) 2023-10-31 13:42:52 +01:00
Joost Lekkerkerker
55a4769172
Abort config flow if Google Tasks API is not enabled (#103114)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-10-31 11:32:17 +01:00
Erik Montnemery
0304ac5a1b
Fix restore state for light when saved attribute is None (#103096) 2023-10-31 10:05:03 +01:00
G Johansson
85d49a2920
Fix Met Device Info (#103082) 2023-10-31 08:31:53 +01:00
Erik Montnemery
246ebc99cc
Fix local_todo todo tests (#103099) 2023-10-31 02:38:58 +01:00
Erik Montnemery
64f8967739
Fix todoist todo tests (#103101) 2023-10-31 02:38:18 +01:00
Erik Montnemery
df814af076
Fix shopping_list todo tests (#103100) 2023-10-31 02:03:54 +01:00
Erik Montnemery
6e62cf5efb
Fix google_tasks todo tests (#103098) 2023-10-31 02:03:34 +01:00
Mislav Mandarić
84b71c9ddb
Allow setting hvac mode through set_temperature climate method in Gree integration (#101196)
* Allow setting hvac mode through set_temperature climate method

* Suggested code simplification when reading hvac mode

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

* Remove unnecessary temperature unit handling from set temperature with hvac mode tests

---------

Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2023-10-30 22:10:47 +01:00
Robert Resch
d97a030872
Refactor todo services and their schema (#103079) 2023-10-30 21:43:24 +01:00
Joost Lekkerkerker
7319abcab0
Show a warning when no Withings data found (#103066) 2023-10-30 19:40:27 +01:00
Duco Sebel
0f72495a7d
Rename power to energy in HomeWizard (#102948) 2023-10-30 19:09:23 +01:00
Álvaro Fernández Rojas
cb0517d20e
Update AEMET-OpenData to v0.4.6 (#102996) 2023-10-30 18:54:50 +01:00
Joost Lekkerkerker
953d5e0080
Add 2 properties to Withings diagnostics (#103067) 2023-10-30 15:47:08 +01:00
David Knowles
f160fa4bc3
Make Hydrawise initialize data immediately (#101936) 2023-10-30 15:18:59 +01:00
mkmer
92ec525de1
Add retry before unavailable to Honeywell (#101702)
Co-authored-by: Robert Resch <robert@resch.dev>
2023-10-30 15:16:41 +01:00
Franck Nijhof
487dcf227e
Rewrite HomeWizard Energy tests (#103000)
Co-authored-by: Duco Sebel <74970928+DCSBL@users.noreply.github.com>
2023-10-30 14:07:42 +01:00
J. Nick Koston
b3743937de
Avoid looking up the callable type for HassJob when we already know it (#102962)
* Avoid looking up the callable type for HassJob when we already know it

When we connect the frontend we call async_listen with run_immediately MANY
times when we already know the job type (it will always be a callback). This
reduces the latency to get the frontend going

* missing coverage
2023-10-30 12:45:22 +01:00
Robert Hillis
7dbe0c3a48
Fix Google Mail expired authorization (#102735)
* Fix Google Mail expired authorization

* add test

* raise HomeAssistantError

* handle in api module

* uno mas
2023-10-30 12:36:34 +01:00
Diogo Gomes
7c94293cb4
Fix utility_meter reset when DST change occurs (#103012) 2023-10-30 09:46:20 +01:00