1
0
mirror of https://github.com/home-assistant/core.git synced 2025-08-17 17:30:08 +00:00

32 Commits

Author SHA1 Message Date
epenet
7b1b229718 Standardize homeassistant imports in component tests (a-l) () 2025-01-29 10:00:45 +01:00
epenet
fe2402b611 Add alias to DOMAIN import in tests [e-g] () 2024-09-09 15:18:28 +02:00
Florian
9b2915efed Don't allow switch toggle when device in locked in AVM FRITZ!SmartHome ()
* fix: set state of the FritzBox-Switch to disabled if the option for manuel switching in the userinterface is disabled

* feat: raise an error instead of disabling switch

* feat: rename method signature

* fix: tests

* fix: wrong import

* feat: Update homeassistant/components/fritzbox/strings.json

Update error message

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

* Update tests/components/fritzbox/test_switch.py

feat: update test

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

* make ruff happy

* fix expected error message check

---------

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2024-06-26 21:45:17 +02:00
J. Nick Koston
9a79320861 Mark executor jobs as background unless created from a tracked task ()
* Mark executor jobs as background unless created from a tracked task

If the current task is not tracked the executor job should not
be a background task to avoid delaying startup and shutdown.

Currently any executor job created in a untracked task or
background task would end up being tracked and delaying
startup/shutdown

* import exec has the same issue

* Avoid tracking import executor jobs

There is no reason to track these jobs as they are always awaited
and we do not want to support fire and forget import executor jobs

* fix xiaomi_miio

* lots of fire time changed without background await

* revert changes moved to other PR

* more

* more

* more

* m

* m

* p

* fix fire and forget tests

* scrape

* sonos

* system

* more

* capture callback before block

* coverage

* more

* more races

* more races

* more

* missed some

* more fixes

* missed some more

* fix

* remove unneeded

* one more race

* two
2024-03-30 00:16:53 -04:00
Marc Mueller
c88b337600 Add empty line after module docstring [tests f-k] () 2024-03-08 14:50:04 +01:00
Michael
9c5e0fc2c9 Discover new added device at runtime in AVM Fritz!Smarthome () 2023-11-20 17:13:52 +01:00
Jan-Philipp Benecke
04a497343d Update f-g* tests to use entity & device registry fixtures () 2023-11-12 13:07:38 +01:00
Michael
e7462e916a Conditional category for temperature sensor entities in AVM Fritz!Smarthome () 2023-08-30 10:29:35 +02:00
Allen Porter
12129e9d21 Update service call return values and error handling ()
* 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
Michael
9d508ac7ae Add entity name translations to AVM Fritz!SmartHome ()
* add entity name translation

* sort and capitalize

* adjust tests

* sort entities
2023-04-03 13:04:09 -04:00
Michael
d4edec2863 Move calculation of current value into lib in Fritz!SmartHome () 2023-03-15 18:59:03 +01:00
epenet
b68f502769 Add type hints to integration tests (part 7) () 2023-02-13 09:53:09 +01:00
Michael
e5f67c9119 Replace the usage of unit constants by enumerations in Tests [f-g] () 2023-01-15 14:46:45 +01:00
Michael
69bf77be12 Avoid multiline lambdas in Fritz!Smarthome sensors ()
* avoid multiline lambdas

* update tests
2022-09-28 08:43:31 +02:00
Michael
6f02f7c6ce Bump pyfritzhome to 0.6.7 () 2022-09-15 16:01:55 +02:00
Michael
e30478457b Fix voltage and current values for Fritz!DECT smart plugs ()
fix voltage and current values
2022-06-17 07:40:02 +02:00
Michael
6874b49a39 Perform re-login after Fritzbox has rebooted () 2022-01-24 12:25:29 +01:00
Michael
9deebaa65f Move lock and devicelock attributes into sensors for all AVM Fritz!Smarthome entities () 2022-01-07 14:46:17 +01:00
Dave T
33bddf275c Use SensorStateClass Enums in fritzbox tests () 2021-12-21 19:17:23 +01:00
Michael
a6aff613d7 Optimize update calls for AVM Fritz!Smarthome devices () 2021-10-14 13:53:05 -07:00
Julian Löhr
26042bdad7 Add Fritz!DECT 440 humidity sensor ()
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2021-09-30 11:56:38 +02:00
Michael
7ece35cd6f Assume Fritz!Smarthome device as unavailable () 2021-09-23 13:29:12 -07:00
Erik Montnemery
0abcfb42b3 Remove last_reset attribute from FritzBoxEnergySensor () 2021-08-16 23:57:59 +02:00
Michael
2b0b8736f2 Set state class measurement also for Total Energy for AVM Fritz!Smarthome devices () 2021-07-29 11:54:51 -07:00
Michael
42e8a7c842 Move Fritzbox power, energy and temperature switch attributes to sensors ()
* deprecate switch entity properties

* Add last_reset to FritzBoxEnergySensor

* Remove obsolet temperature attribute
2021-07-23 13:06:30 +02:00
Michael
24e07bc154 Fritzbox enable temp sensor () 2021-07-22 09:19:39 -07:00
Michael
a5e25e519f Remove yaml configuration from fritzbox () 2021-04-25 09:49:08 -10:00
Michael
a352516944 Implement DataUpdateCoordinator to fritzbox integration () 2021-04-24 14:40:12 -10:00
jan iversen
6a4f414236 Change HomeAssistantType to HomeAssistant () 2021-04-21 15:53:06 -10:00
Franck Nijhof
65cf2fcb6f Drop asynctest () 2021-01-01 22:31:56 +01:00
Paulus Schoutsen
2af984917e Use asynctest-mock in most places ()
* Use asynctest-mock in most places

* Fix broken patch in pilight
2020-05-03 11:27:19 -07:00
escoand
c87ecf0ff6 Add config flow and device registry to fritzbox integration ()
* add config flow

* fix pylint

* update lib

* Update config_flow.py

* remote devices layer in config

* add default host

* avoid double setups of entities

* remove async_setup_platform

* store entities in hass.data

* pass fritz connection together with config_entry

* fritz connections try no4 (or is it even more)

* fix comments

* add unloading

* fixed comments

* Update config_flow.py

* Update const.py

* Update config_flow.py

* Update __init__.py

* Update config_flow.py

* Update __init__.py

* Update __init__.py

* Update config_flow.py

* Update __init__.py

* Update __init__.py

* Update __init__.py

* Update config_flow.py

* add init tests

* test unloading

* add switch tests

* add sensor tests

* add climate tests

* test target temperature

* mock config to package

* comments

* test binary sensor state

* add config flow tests

* comments

* add missing tests

* minor

* remove string title

* deprecate yaml

* don't change yaml

* get devices async

* minor

* add devices again

* comments fixed

* unique_id fixes

* fix patches

* Fix schema

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-04-20 15:00:07 +02:00