Commit graph

56 commits

Author SHA1 Message Date
Michael
c5cac8fed4
Store runtime data inside the config entry in AVM Fritz!Smarthome (#116523) 2024-05-01 20:51:39 +02:00
Marc Mueller
0e3945ca6c
Add empty line after module docstring [d-f] (#112698) 2024-03-08 14:15:26 +01:00
Erik Montnemery
0c2485bc03
Freeze integration entity descriptions (#105984)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-12-18 16:28:13 -10:00
Michael
4cca174586
Address late review comments on AVM FRITZ!SmartHome (#105860)
set copies dict keys by default
2023-12-16 19:38:58 +01:00
Michael
08ca3678da
Ensure platform setup for all AVM FRITZ!SmartHome devices (#105515) 2023-12-13 18:07:29 +01:00
Michael
f69045fb64
Address late fritzbox coordinator runtime device discover review comments (#104267)
replace list comprehension by generator expression
2023-11-20 19:02:02 +01:00
Michael
9c5e0fc2c9
Discover new added device at runtime in AVM Fritz!Smarthome (#103859) 2023-11-20 17:13:52 +01:00
Michael
e7462e916a
Conditional category for temperature sensor entities in AVM Fritz!Smarthome (#98981) 2023-08-30 10:29:35 +02:00
Joost Lekkerkerker
c1e8eb7c96
Use device class translations for Fritzbox (#95363) 2023-06-27 14:06:57 +02:00
Marc Mueller
86792fcc2f
Update mypy to 1.4.0 (#94987) 2023-06-21 16:12:51 +02:00
Michael
2ba2c6c6ab
Correct entity categories in AVM FRITZ!SmartHome (#91073) 2023-04-24 16:57:34 +02:00
Michael
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
Michael
d4edec2863
Move calculation of current value into lib in Fritz!SmartHome (#89150) 2023-03-15 18:59:03 +01:00
Erik Montnemery
cc564026fa
Move EntityCategory to homeassistant.const (#87792)
* Move EntityCategory to homeassistant.const

* Fix more imports
2023-02-09 20:15:37 +01:00
epenet
9580c4f1ec
Use UnitOfTemperature in integrations (e-h) (#84305) 2022-12-20 18:29:16 +01:00
epenet
0dd20fb309
Use UnitOfEnergy in integrations (a-n) (#84220) 2022-12-19 11:06:00 +01:00
epenet
0184aadb09
Use UnitOfElectricPotential in integrations (#84044) 2022-12-15 13:59:21 +01:00
epenet
4fe025b297
Use UnitOfPower in integrations [a-g] (#83812) 2022-12-12 11:48:09 +01:00
epenet
7c3ca38eb7
Use UnitOfElectricCurrent in integrations (#83622) 2022-12-09 10:51:26 +01:00
Michael
217d8eb9c5
Address late review of fritzbox (#82369) 2022-11-19 15:12:24 +01:00
Ayk Borstelmann
3b783a85c3
AVM Fritz!Box SmartHome: Integrate Templates (#81885) 2022-11-18 17:37:56 +01:00
Ryan Miguel
4abe5aec6c
Fix ZeroDivisionError for Fritz!Smarthome electric current sensor (#80682)
Fixes ZeroDivisionError for fritzbox sensor. Fixes #80618.
2022-10-21 10:07:45 +02:00
Michael
69bf77be12
Avoid multiline lambdas in Fritz!Smarthome sensors (#78524)
* avoid multiline lambdas

* update tests
2022-09-28 08:43:31 +02:00
Michael
6f02f7c6ce
Bump pyfritzhome to 0.6.7 (#78324) 2022-09-15 16:01:55 +02:00
epenet
ec532414ba
Import climate constants from root [a-l] (#78177) 2022-09-10 23:39:52 +02:00
Michael
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
Michael
eca6768016
Use default None for voltage property of FritzDevice in Fritz!Smarthome (#73141)
use default None for device.voltage
2022-06-07 16:01:44 -07:00
Daniel Reimer
31b6b3deb5
Add sensors for current and potential to AVM FRITZ!SmartHome / Fritz!DECT (#69999)
* Update sensor.py

Add sensors for current and potential to AVM FRITZ!SmartHome. Tested with Fritz!DECT 200

* Update sensor.py

black, flake8 and isort checked

* Fix the change requests

Fixed the division by 1000 on two code parts to comply with the AVM API documention.
Added device.power to availability check.

* black --fast applied

* fix issort

* rename electric potential to voltage

Co-authored-by: mib1185 <mail@mib85.de>
2022-04-24 22:02:19 +02:00
epenet
44b7c0e65c
Use new enums in fritzbox (#61447)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-10 08:58:23 -05:00
refinedcranberry
a78f0eae39
Add "nextchange" sensors to AVM FRITZ!Smarthome devices (#58274) 2021-11-25 12:34:04 +01:00
Michael
d5f85f393d
Add entity categorisation to AVM Fritz!Smarthome devices (#59287) 2021-11-14 17:05:18 +01:00
Julian Löhr
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
Marc Mueller
565a9fea6b
Import Callable from collections.abc (2) (#56776) 2021-09-29 14:06:51 +02:00
Michael
f1ba98927c
Address late fritzbox comments (#55388)
* correct imports

* move platform specifics into platforms

* move descriptions into platforms
2021-08-28 23:07:06 +02:00
Michael
e2dac31471
Use EntityDescription - fritzbox (#55104)
* Use sensor entity description

* check if not none instead if callable

* List comprehension in switch and climate

* change state to native_value in description

* merge FritzBoxSensorEntity into FritzBoxEntity

* rename SENSOR_DESCRIPTIONS to SENSOR_TYPES

* use mixins for descriptions

* use comprehension in async_setup_entry()

* improve extra_state_attributes
2021-08-27 17:09:34 +02:00
Erik Montnemery
0abcfb42b3
Remove last_reset attribute from FritzBoxEnergySensor (#54644) 2021-08-16 23:57:59 +02:00
Erik Montnemery
87e7a8fb5f
Move temperature conversions to sensor base class - new integrations (#54623)
* Move temperature conversions to sensor base class

* Tweaks

* Update pvpc_hourly_pricing

* Fix flipr sensor

* Fix ezviz and youless sensor
2021-08-15 08:51:43 +02:00
Erik Montnemery
6de6a5dc14
Move temperature conversions to sensor base class (3/8) (#54469)
* Move temperature conversions to entity base class (3/8)

* Fix FritzBox sensor

* Fix tests
2021-08-12 14:23:56 +02:00
Michael
4241c4ca5b
Fix crash when AVM FRITZ!SmartHome devices are unreachable (#53809) 2021-08-02 16:13:54 +02:00
Michael
2b0b8736f2
Set state class measurement also for Total Energy for AVM Fritz!Smarthome devices (#53707) 2021-07-29 11:54:51 -07:00
Michael
42e8a7c842
Move Fritzbox power, energy and temperature switch attributes to sensors (#52562)
* 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 (#52558) 2021-07-22 09:19:39 -07:00
Erik Montnemery
3e09787d85
Set device_class on temperature sensors F-K (#52918)
* Set device_class on temperature sensors F-K

* Fix juicenet sensor
2021-07-12 20:32:55 +02:00
Michael
25b2fd0cee
Add strict typing to fritzbox (#50486)
* enable strict typing

* apply suggestions

* set defaults for FritzboxConfigFlow

* improvements and suggestions

* another suggestion

* tweaks

* tweaks
2021-05-15 07:54:11 +02:00
Simone Chemelli
1ad9f1d714
Title and internal descriptions updates for Fritzbox (#49047) 2021-05-03 12:52:22 +02:00
Ruslan Sayfutdinov
cbaeec2a4e
Use AddEntitiesCallback type, pt.2 (#49921) 2021-04-30 20:38:59 +02:00
Michael
a352516944
Implement DataUpdateCoordinator to fritzbox integration (#49611) 2021-04-24 14:40:12 -10:00
Michael
a050c8827b
Add battery sensor to fritzbox smart home devices (#49374) 2021-04-18 12:30:58 -10:00
Erik Montnemery
339a56e434
Migrate integrations f-h to extend SensorEntity (#48212) 2021-03-22 19:45:17 +01:00
Erik Montnemery
af4d06b12e
Update integrations f-i to override extra_state_attributes() (#47757) 2021-03-11 16:57:47 +01:00