Commit Graph

36 Commits (d75862762b842ab937aa28917ce7a82bcc1b2012)

Author SHA1 Message Date
Michael 3d64d1b76b
Add tests for Fritz!Tools sensors (#67776) 2022-03-29 16:54:16 -07:00
Simone Chemelli 53543f15a5
Allign logic for Fritz sensors and binary_sensors (#67623) 2022-03-04 14:38:28 -08:00
Simone Chemelli 0c9be633f5
Fix missing uptime sensor in some Fritz scenarios (#67073)
* Fix missing uptime sensor in some Fritz scenarios

* apply review comment
2022-02-23 01:02:12 +01:00
Michael 660fb393f0
Enable sensors based on wan scenario in Fritz!Tools (#66944) 2022-02-21 18:03:38 +01:00
Michael dc65c621ed
check wan access type (#65389) 2022-02-06 14:17:10 -08:00
Simone Chemelli 02df6eb10e
Move call_action to AvmWrapper for Fritz (#64667) 2022-01-23 13:04:19 +01:00
Michael 09297520c0
Let the new wrapper just extend the `FritzBoxTools` class (#64133)
* let wrapper just extend the FritzBoxTools class

* keep avm_device in method names
2022-01-20 12:43:32 +01:00
Simone Chemelli bdea7fad75
Fritz: introduce wrapper.py - part 1 (sensor) (#63682)
* Revert "Improve availability for Shelly Valve"

This reverts commit d8cbd81b456820153522e6d86bbd00c4a4a31129.

* Fritz: introduce api.py - part 1 (sensor)

* Revert

* coverage

* Apply review comments

* Better naming

* Coverage

* fix naming

* Avoid "ignore[no-any-return]"
2022-01-11 17:31:52 -10:00
Simone Chemelli 60b6871b46
Fritz cleanup: part1 (naming) (#63535) 2022-01-06 12:15:40 +01:00
Simone Chemelli fc02260146
Fix management of Fritz repeaters (#63110) 2022-01-02 14:59:41 +01:00
epenet 80b65c679f
Use new enums in fritz (#61446)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-10 08:58:34 -05:00
Marc Mueller de78c4f0f8
Import Callable from collections.abc (#60354) 2021-11-25 22:23:48 +01:00
Michael 6588879b6e
Use native datetime value in AVM Fritz!Tools sensors (#60233) 2021-11-23 21:20:51 +01:00
Simone Chemelli c7ff6eb5ee
Address late review for Fritz entity_category (#58141) 2021-10-21 08:36:52 +02:00
Simone Chemelli 1a978662ec
Add configuration_url and entity_category to Fritz (#58004) 2021-10-18 19:30:45 -07:00
Simone Chemelli 8993ff0377
Fritz new binary sensor for link and firmware status + code cleanup (#55446) 2021-09-30 11:18:04 +02:00
Marc Mueller d51487f82a
Import Callable from collections.abc (3) (#56777) 2021-09-29 16:19:06 +02:00
Simone Chemelli 715ce3185b
Handle Fritz InternalError (#55711) 2021-09-04 13:56:59 -07:00
Simone Chemelli fa7873dc6d
Fix noise/attenuation units to UI display for Fritz (#55447) 2021-08-30 08:43:11 -07:00
Florian Gareis c3316df31d
Don't create DSL sensor for devices that don't support DSL (#55269) 2021-08-26 09:33:41 -07:00
Erik Montnemery 1280a38e0f
Remove last_reset attribute from fritz sensors (#54806) 2021-08-18 13:12:37 +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
Schmidsfeld fc40735295
Add more Fritz sensors for DSL connections (#53198)
* Update sensor.py

Added information about the upstream line accorrding to fritzconnection library (available since V1.5.0) .
New information available are line sync speed,, noise margin and power attenuation.

Tested with ADSL and VDSL lines on fritzbox 7590, 7490 and 7390. 
Not tested on cable internet / fiber. According to upstrem library should also work / fail gracefully.

* Update sensor.py

Fixed errors from automated tests
Sorry it took so long

* Update homeassistant/components/fritz/sensor.py

Thank you this sounds even better

Co-authored-by: Simone Chemelli <simone.chemelli@gmail.com>

* Update homeassistant/components/fritz/sensor.py

Co-authored-by: Simone Chemelli <simone.chemelli@gmail.com>

* Update homeassistant/components/fritz/sensor.py

Co-authored-by: Simone Chemelli <simone.chemelli@gmail.com>

* Update homeassistant/components/fritz/sensor.py

Co-authored-by: Simone Chemelli <simone.chemelli@gmail.com>

* Update homeassistant/components/fritz/sensor.py

Co-authored-by: Simone Chemelli <simone.chemelli@gmail.com>

* Update homeassistant/components/fritz/sensor.py

Co-authored-by: Simone Chemelli <simone.chemelli@gmail.com>

* Update homeassistant/components/fritz/sensor.py

Co-authored-by: Simone Chemelli <simone.chemelli@gmail.com>

* Update homeassistant/components/fritz/sensor.py

Co-authored-by: Simone Chemelli <simone.chemelli@gmail.com>

* Update homeassistant/components/fritz/sensor.py

Co-authored-by: Simone Chemelli <simone.chemelli@gmail.com>

* black & mypy fixes

* Rebase, fix multiplier, add conditional create

Co-authored-by: Simone Chemelli <simone.chemelli@gmail.com>
2021-08-08 11:23:28 +02:00
Simone Chemelli 582f2ae2f6
Two fixes (#54102) 2021-08-05 19:24:41 -07:00
Simone Chemelli 316c2baa12
Fix divider for Fritz sensors (#53980) 2021-08-04 21:53:07 +02:00
Simone Chemelli 33af2602af
Fix wan/device uptime and add state_class to counters for Fritz (#52574)
* Fix wan/device uptime, add state_class to counters

* Rebase + cleanup + adapt to final fritzconnection

* Bump fritzconnection library

* Missing bump
2021-07-25 20:43:31 +03:00
Marc Mueller 2d48d273a7
Fix incorrect unit (#53274) 2021-07-21 10:12:32 -07:00
Marc Mueller 6be30b0289
Use unit constants (#53244)
* Powerwall - use POWER_KILO_WATT constant

* Use constants firtz sensor
2021-07-20 20:08:39 +02:00
Simone Chemelli b13119884c
Fix units for Fritz network sensors (#53026) 2021-07-16 11:01:00 -07:00
Simone Chemelli a70dae0843
Enable strict typing for Fritz (#50668)
Co-authored-by: Ruslan Sayfutdinov <ruslan@sayfutdinov.com>
2021-07-06 15:06:32 +02:00
Simone Chemelli 69b9a9c4ee
Merge fritzbox_netmonitor integration into fritz (#52264)
* Merge netmonitor integration

* cleanup additional files

* Use attrs instead of properties

* Add state_class to relevant sensors

* Update homeassistant/components/fritz/sensor.py

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

* Update homeassistant/components/fritz/sensor.py

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

* Update homeassistant/components/fritz/sensor.py

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

* Update homeassistant/components/fritz/sensor.py

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

* Update homeassistant/components/fritz/sensor.py

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

* Update homeassistant/components/fritz/sensor.py

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

* mypy fix + small cleanup

* Round, GB and icons

* Update homeassistant/components/fritz/sensor.py

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

* remove state_class from no-reset counters

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-07-03 16:26:43 +03:00
Simone Chemelli 3b8ece38b3
Second part of Strict types for Fritz (#52086)
Co-authored-by: Shay Levy <levyshay1@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-06-24 17:02:41 +02:00
Simone Chemelli 4d55290932
Fritz code quality improvements from #48287 and #50055 (#50479)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-05-14 11:46:37 -05:00
J. Nick Koston 0fdc50408a
Remove unused ignore in fritz (#50469) 2021-05-11 19:08:13 +02:00
Simone Chemelli e616583bad
Improve types for Fritz (#50327)
Co-authored-by: Ruslan Sayfutdinov <ruslan@sayfutdinov.com>
Co-authored-by: Maciej Bieniek <bieniu@users.noreply.github.com>
2021-05-11 10:41:27 -05:00
Simone Chemelli 4d0955bae1
Add Fritz sensors (#50055)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-05-07 09:05:16 -05:00