Commit Graph
74 Commits
Author SHA1 Message Date
Marc MuellerandGitHub aa16a9d707 Add empty line after module docstring (3) (#112750) 2024-03-08 20:38:34 +01:00
Marc MuellerandGitHub 32f3f46542 Add empty line after module docstring (2) [tests.components] (#112737) 2024-03-08 19:16:21 +01:00
Marc MuellerandGitHub c88b337600 Add empty line after module docstring [tests f-k] (#112709) 2024-03-08 14:50:04 +01:00
Jan BouwhuisandGitHub 861bb48ab6 Assign specific error code for HomeAssistantError on websocket_api connection exceptions (#104700)
Assign specific error code for HomeAssistantError
2023-11-29 13:07:52 +01:00
MichaelandGitHub 9c5e0fc2c9 Discover new added device at runtime in AVM Fritz!Smarthome (#103859) 2023-11-20 17:13:52 +01:00
Jan-Philipp BeneckeandGitHub 04a497343d Update f-g* tests to use entity & device registry fixtures (#103841) 2023-11-12 13:07:38 +01:00
Paul BotteinandGitHub c98c18f25e Return 'None' for light attributes when off instead of removing them (#101946) 2023-10-19 01:08:08 +02:00
MichaelandGitHub 18fad569e0 Add support to remove orphan devices in AVM FRITZ!SmartHome (#100739) 2023-09-26 18:01:01 +02:00
MichaelandGitHub e7462e916a Conditional category for temperature sensor entities in AVM Fritz!Smarthome (#98981) 2023-08-30 10:29:35 +02:00
MichaelandGitHub 533a8beac2 Raise ConfigEntryNotReady when unable to connect during setup of AVM Fritz!Smarthome (#97985) 2023-08-14 10:42:20 +02:00
eee8566694 Differentiate between device info types (#95641)
* Differentiate between device info types

* Update allowed fields

* Update homeassistant/helpers/entity_platform.py

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

* Split up message in 2 lines

* Use dict for device info types

* Extract device info function and test error checking

* Simplify parsing device info

* move checks around

* Simplify more

* Move error checking around

* Fix order

* fallback config entry title to domain

* Remove fallback for name to config entry domain

* Ensure mocked configuration URLs are strings

* one more test case

* Apply suggestions from code review

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

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-07-10 09:56:06 -04:00
12129e9d21 Update service call return values and error handling (#94657)
* Update return signature of service calls

* Add timeout error handling in websocket api for service calls

* Update recorder tests to remove assertion on service call

* Remove timeout behavior and update callers that depend on it today

* Fix tests

* Add missing else

* await coro directly

* Fix more tests

* Update the intent task to use wait instead of timeout

* Remove script service call limits and limit constants

* Update tests that depend on service call limits

* Use wait instead of wait_for and add test

* Update homeassistant/helpers/intent.py

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

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-06-16 07:01:40 -07:00
MichaelandGitHub 9d508ac7ae Add entity name translations to AVM Fritz!SmartHome (#90707)
* add entity name translation

* sort and capitalize

* adjust tests

* sort entities
2023-04-03 13:04:09 -04:00
MichaelandGitHub d4cc4a343d Use has_template property from lib in Fritz!SmartHome (#89152) 2023-03-21 21:33:33 +01:00
MichaelandGitHub d4edec2863 Move calculation of current value into lib in Fritz!SmartHome (#89150) 2023-03-15 18:59:03 +01:00
parliament119andGitHub 7d97653895 Bump pyfritzhome to 0.6.8 and add support for Non-Color-Bulbs (#89141) 2023-03-08 18:24:37 +01:00
Franck NijhofandGitHub ed79265843 Enable Ruff PT006 (#88165)
* Enable Ruff PT006

* Adjust existing cases

* Fix tests

* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenetandGitHub b68f502769 Add type hints to integration tests (part 7) (#87980) 2023-02-13 09:53:09 +01:00
epenetandGitHub a79be493e5 Adjust hass_client type hint in integration tests (#86954)
* Adjust hass_client type hint in integration tests

* Adjust hass_client_no_auth

* Fix rebase
2023-02-02 16:29:57 -05:00
epenetandGitHub 6859a9ebdd Add missing mock in fritzbox (#86005) 2023-01-16 13:05:22 +01:00
MichaelandGitHub e5f67c9119 Replace the usage of unit constants by enumerations in Tests [f-g] (#85933) 2023-01-15 14:46:45 +01:00
MichaelandGitHub ea95f74d6d Fix loading of Fritz!Smarthome issues on older Fritz!Box (#83688)
* check if templates are available

* add test
2022-12-09 20:54:22 -05:00
Ayk BorstelmannandGitHub 3b783a85c3 AVM Fritz!Box SmartHome: Integrate Templates (#81885) 2022-11-18 17:37:56 +01:00
LarsandGitHub 1c8156bd33 Update Fritz! lights to use kelvin (#79733) 2022-10-25 13:45:02 +02:00
MichaelandGitHub 69bf77be12 Avoid multiline lambdas in Fritz!Smarthome sensors (#78524)
* avoid multiline lambdas

* update tests
2022-09-28 08:43:31 +02:00
epenetandGitHub 0d696b84b2 Cleanup root component imports in tests (#78893) 2022-09-21 06:57:41 -10:00
MichaelandGitHub 6f02f7c6ce Bump pyfritzhome to 0.6.7 (#78324) 2022-09-15 16:01:55 +02:00
jonasrickertandGitHub 3e1c9f1ac7 Add Rollotron DECT 1213 to fritzbox (#76386) 2022-08-16 11:49:31 +02:00
Franck NijhofandGitHub a6244eea28 Search/replace RESULT_TYPE_* by FlowResultType enum (#74656) 2022-07-07 21:28:18 +02:00
MichaelandGitHub e30478457b Fix voltage and current values for Fritz!DECT smart plugs (#73608)
fix voltage and current values
2022-06-17 07:40:02 +02:00
804c888098 Free color selection for Fritz!Smarthome lights (#66213)
* Fritz light free color selection

* Use setcolor as fallback

* better debug log message

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

* change if-clause

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2022-05-25 09:28:36 +02:00
d52234a57a Use climate enums in fritzbox (#70650)
* Use climate enums in fritzbox

* Adjust tests

* Update homeassistant/components/fritzbox/climate.py

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

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-04-25 13:33:51 +02:00
MichaelandGitHub 95421b1ae7 Ignore IPv6 link local address on ssdp discovery in Fritz!Smarthome (#69455) 2022-04-06 15:45:46 -07:00
MichaelandGitHub 6874b49a39 Perform re-login after Fritzbox has rebooted (#64709) 2022-01-24 12:25:29 +01:00
e0e6853968 Add diagnostics platform to AVM Fritz!Smarthome (#64657)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-01-21 11:25:19 -08:00
c99ddcb80a spelling: components/fritzbox (#64258)
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
2022-01-17 15:31:48 +01:00
MichaelandGitHub 9deebaa65f Move lock and devicelock attributes into sensors for all AVM Fritz!Smarthome entities (#60426) 2022-01-07 14:46:17 +01:00
Dave TandGitHub 33bddf275c Use SensorStateClass Enums in fritzbox tests (#62134) 2021-12-21 19:17:23 +01:00
MichaelandGitHub 8626de24fc Use correct value for current temperature for AVM Fritz!Smarthome thermostat devices (#60510) 2021-11-29 19:58:22 +01:00
MichaelandGitHub 78305ac6ae Fix slow config_flow test in AVM Fritz!SmartHome (#60348) 2021-11-25 11:48:17 -06:00
f292691b7b Use SsdpServiceInfo for ssdp tests (part 3) (#60334)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-25 11:46:20 -06:00
refinedcranberryandGitHub a78f0eae39 Add "nextchange" sensors to AVM FRITZ!Smarthome devices (#58274) 2021-11-25 12:34:04 +01:00
MichaelandGitHub ccad6a8f07 Add configuration url to AVM Fritz!Smarthome (#57711)
* add configuration url

* extend data update coordinator

* improve exception handling during data update

* store coordinator after first refresh

* fix light init
2021-10-31 12:12:25 -07:00
LarsandGitHub 416d87c01c Fix fritzbox tests (#58227) 2021-10-22 17:29:36 +02:00
LarsandGitHub 2148c84386 Support for Fritz!DECT 500 lightbulbs (#52830) 2021-10-22 14:30:03 +02:00
MichaelandGitHub a6aff613d7 Optimize update calls for AVM Fritz!Smarthome devices (#57579) 2021-10-14 13:53:05 -07:00
26042bdad7 Add Fritz!DECT 440 humidity sensor (#54597)
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2021-09-30 11:56:38 +02:00
MichaelandGitHub 7ece35cd6f Assume Fritz!Smarthome device as unavailable (#56542) 2021-09-23 13:29:12 -07:00
Erik MontnemeryandGitHub 0abcfb42b3 Remove last_reset attribute from FritzBoxEnergySensor (#54644) 2021-08-16 23:57:59 +02:00
MichaelandGitHub 4241c4ca5b Fix crash when AVM FRITZ!SmartHome devices are unreachable (#53809) 2021-08-02 16:13:54 +02:00