Commit graph

24012 commits

Author SHA1 Message Date
Stefan Agner
88ad7e98e0
Store instance name in Thread router discovery (#127253)
* Store instance name in Thread router discovery

Store the DNS-SD instance name in the Thread router discovery message.
The instance name is the actual name given to a Thread border router,
e.g. when configuring the name of a Thread border router in Apple Home
the name appears as the DNS-SD instance name. This will allow to make
the Thread border router list more user friendly.

* Use instance_name_from_service_info to get instance name
2024-10-02 21:41:55 +02:00
G Johansson
a3b1a30d06
Add reconfigure step to trafikverket weather (#127140)
* Add reconfigure step to trafikverket weather

* Use helper

* Fix

* Fix review comments
2024-10-02 21:04:00 +02:00
Steven Looman
f8b192bd94
Handle the correct exception type when subscribing to the router service returns an error in the upnp component (#127006)
* Catch the right exception when handling subscription errors

* Assert device is forced to poll
2024-10-02 20:55:25 +02:00
Erik Montnemery
4c6ab3921a
Store modern_forms flow data in flow handler attributes (#127175) 2024-10-02 19:59:44 +02:00
Erik Montnemery
1dc1fd421b
Use ConfigFlow.has_matching_flow to deduplicate tplink flows (#127164) 2024-10-02 19:59:24 +02:00
Paul Bottein
c306ebed49
Fix device id support for alarm control panel template (#127340) 2024-10-02 19:04:36 +02:00
Mark Grandi
c265c91ef2
Add protocol upload / download sensors to Deluge (#119203)
* Add Protocol Upload/Download for Deluge

* add unit test and fix typo in sensor.py

* remove unneeded import

* rename/unify the translation keys and entries in const.py

* split out const.py items into DelugeSensorType to avoid confusion with DelugeGetSessionStatusKeys

* change DelugeGetSessionStatusKeys to be a regular enum to satisfy mypy
2024-10-02 16:44:56 +02:00
starkillerOG
3184951625
Add sensor for total installations and integrations to Analytics Insights (#127248)
* Add sensor for total installations and integrations

* Fix tests

* Use pytest fixture
2024-10-02 16:25:27 +02:00
Marc Mueller
ea115e0481
Fix telegram_bot tests for Python 3.13 (#127293) 2024-10-02 14:15:01 +02:00
Erik Montnemery
2fdde24024
Remove the Google Domains integration (#127278) 2024-10-02 13:58:19 +02:00
epenet
21266e1c68
Add config_flow helper to get reauth/reconfigure config entry (#127115)
* Add config_flow helper to get config entry from context

* Simplify

* Apply to aussie_broadband

* Another example

* Rename and adjust docstring

* Simplify

* Add test

* Refactor to hide context

* Raise

* Improve coverage

* Use AttributeError

* Use ValueError

* Raise UnknownEntry
2024-10-02 12:00:07 +02:00
Erik Montnemery
3f1acdc9ec
Make recorder WS command recorder/clear_statistics wait (#127120) 2024-10-02 10:43:40 +02:00
epenet
9873371413
Use start_reconfigure_flow in config flow tests (#127191)
* Use start_reconfigure_flow in config flow tests

* Adjust fritz
2024-10-02 10:01:15 +02:00
Erik Montnemery
2a2af01d12
Make recorder WS command recorder/update_statistics_metadata wait (#127179) 2024-10-02 09:56:36 +02:00
functionpointer
5bd2d27488
Fix Tibber get_prices when called with aware datetime (#123289)
* Tibber: Add extra test to expose aware/naive datetime issue

* Tibber: Fix get_prices action not working with aware datetimes

* Tibber: Simplify comparison

* Tibber: Combine timezone tests into single parametrized one

* Tibber: Split test again to prevent if statement
2024-10-02 08:43:31 +02:00
Erik Montnemery
47985a589e
Ensure frontier_silicon config flow title_placeholders items are [str, str] (#127197) 2024-10-02 08:26:51 +02:00
Erik Montnemery
375d47ee3a
Use ConfigFlow.has_matching_flow to deduplicate yeelight flows (#127165) 2024-10-02 08:25:46 +02:00
Martin Hjelmare
e3e68dad36
Revert "Support Z-Wave JS dimming lights using color intensity (#122639)" (#127256)
This reverts commit c7cfd56b72.
2024-10-02 06:48:47 +02:00
Erik Montnemery
6d65d6bcf6
Don't create statistics issues when sensor is unavailable or unknown (#127226) 2024-10-01 22:08:48 +02:00
Bouwe Westerdijk
0616bc7fec
Improve / clean up Plugwise config_flow code (#127238) 2024-10-01 21:52:16 +02:00
Bill Flood
dd478fe681
Fix Tailwind cover exception when door is already in the requested state (#124543) 2024-10-01 20:51:12 +02:00
Artur Pragacz
98a86c7636
Improve code of normalized name registry (#125282) 2024-10-01 11:20:52 -05:00
Erik Montnemery
4060705d87
Use ConfigFlow.has_matching_flow to deduplicate samsungtv flows (#127235) 2024-10-01 17:56:38 +02:00
epenet
3b7ae1639c
Use reconfigure_confirm in homeworks config flow (#127218)
* Use reconfigure_confirm in homeworks config flow

* Fix tests
2024-10-01 15:17:50 +02:00
epenet
3fb7547d4d
Use reconfigure_confirm in enphase_envoy config flow (#127221) 2024-10-01 15:11:37 +02:00
Martin Hjelmare
bb70a0feb2
Fix Z-Wave rediscovery (#127213) 2024-10-01 14:42:31 +02:00
epenet
44eb4e0c9e
Use reconfigure_confirm in google_travel_time config flow (#127220) 2024-10-01 14:41:15 +02:00
Erik Montnemery
95a79130a2
Add missing None-check in roomba config flow (#127212) 2024-10-01 14:31:35 +02:00
epenet
9d557f47b7
Use reconfigure_confirm in lcn config flow (#127217) 2024-10-01 14:29:31 +02:00
epenet
c654d3283e
Use reconfigure_confirm in vallox config flow (#127214) 2024-10-01 14:25:32 +02:00
epenet
8e6b6269a7
Fix reconfigure_confirm logic in madvr config flow (#127216) 2024-10-01 14:25:14 +02:00
epenet
a2404e7fb8
Use reconfigure_confirm in solarlog config flow (#127215)
* Use reconfigure_confirm in solarlog config flow

* Fix test
2024-10-01 14:24:44 +02:00
Erik Montnemery
3052eca564
Remove unused custom flow context key 'name' from wyoming (#127182) 2024-10-01 12:25:39 +02:00
epenet
b95dfe2b00
Add test helper for starting reconfiguration flow (#127154) 2024-10-01 12:18:07 +02:00
Allen Porter
c5ebd53079
Add a working location google calendar entity (#127016) 2024-10-01 12:14:23 +02:00
Erik Montnemery
4ceff8cabf
Use ConfigFlow.has_matching_flow to deduplicate lifx flows (#127163) 2024-10-01 11:20:50 +02:00
Erik Montnemery
d9bba25f67
Store toon flow data in flow handler attributes (#127180) 2024-10-01 11:15:54 +02:00
G Johansson
de6ca56504
Add config flow validation that calibration factor is not zero (#127136)
* Add config flow validation that calibration factor is not zero

* Add test
2024-09-30 21:30:28 +02:00
Joost Lekkerkerker
10805805fe
Add devices to Withings (#126853) 2024-09-30 21:06:51 +02:00
starkillerOG
0f4c50e83c
Mark Reolink camera entities as unavailable when camera is offline (#127127)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2024-09-30 19:00:37 +02:00
Martin Hjelmare
0a99c1c633
Bump zwave-js-server-python to 0.58.1 (#127114)
* Bump zwave-js-server-python to 0.58.1

* Update tests
2024-09-30 18:35:14 +02:00
epenet
86a95013b6
Use start_reauth_flow helper in ezviz and netatmo tests (#127100)
* Use start_reauth_flow helper in netatmo tests

* Use start_reauth_flow helper in ezviz tests
2024-09-30 16:38:34 +02:00
Sven Sager
74931071de
Use scheduled current preset (if set), when setting HVAC mode in AVM Fritz!Smarthome (#126044)
* Use temperature of current preset when set fritz HVAC mode to HEAT

If the HVAC mode of the Fritzbox thermostats changes from `HVACMode.OFF`
to `HVAMode.HEAT`, the current preset (COMFORT / ECO) should be
observed. Depending on the status of the current preset, the set
temperature of comfort / eco is set as the new temperature.

* fixup do not use value_scheduled_preset

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>

* Add current_preset value to test_set_hvac_mode

The current_preset parameter allows the mock to be set to an active
preset. When setting HVACMode.HEAT, the respective temperature of the
ECO/COMFORT preset should be set.

* fixup Use the updated value_scheduled_preset function

To distinguish which temperature should be used when setting the
`HVAMode.HEAT`, `value_schedules_preset` is now used again, which has
been updated since the first commit. If no schedule is active, the
comfort_temperature is used. Otherwise, the respective temperature of
the current preset.

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>

---------

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2024-09-30 16:29:39 +02:00
IceBotYT
927813ab3b
Raise HomeAssistantError in entity action calls in Nice G.O. (#126439) 2024-09-30 15:36:10 +02:00
epenet
d96fd518e7
Use HassKey in azure_data_explorer (#127087)
* Use HassKey in azure_data_explorer

* Adjust tests

* Adjust

* Remove test
2024-09-30 14:45:37 +02:00
epenet
07fa1fa771
Move monzo test (#127101)
* Move monzo test

* Update tests/components/monzo/test_init.py
2024-09-30 14:43:23 +02:00
Christopher Fenner
404b3fcd03
Add support for room sensors in ViCare integration (#125243)
* Add room sensors

* set humidity device class

* add labels

* Create RoomSensor2.json

* Create RoomSensor1.json

* Update conftest.py

* Create test_sensor.py

* enable E3_RoomSensor

* use setup_integration

* fix ruff findings

* add test case

* fix entity id

* Apply suggestions from code review

* update

* fix findings

* reuse labels

* Apply suggestions from code review

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

* Apply suggestions from code review

* fix test snapshot

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-09-30 14:32:04 +02:00
epenet
e1db5f3cac
Use start_reauth_flow helper in switcher_kis tests (#127098) 2024-09-30 15:28:33 +03:00
epenet
4bb768f39c
Add test for start_reauth_flow test helper (#127093)
* Improve docstring in start_reauth_flow

* Add test

* Make private

* Make fully private until actually needed
2024-09-30 14:28:13 +02:00
Joost Lekkerkerker
352987db7e
Make Laundrify unique id a string (#127092) 2024-09-30 13:21:20 +02:00