Commit Graph

33 Commits (b5300fb32ec4710bcb31dd5c0c744a3b7b4ba575)

Author SHA1 Message Date
Simone Chemelli 105ad861bd
Add buttons and deprecate services for Fritz (#61483)
* Add buttons and deprecate services

* Exclude tests

* Log full service name
2021-12-16 13:25:06 +01:00
Simone Chemelli 116759f2a1
Implement DataUpdateCoordinator for Fritz (#60909)
* Implement DataUpdateCoordinator for Fritz

* mypy

* Wrap sync method to async

* Apply review comments + final cleanup

* CoordinatorEntity
2021-12-16 13:24:32 +01:00
Simone Chemelli 82a422930b
Honor "Enable newly added entities" for Fritz (#59948) 2021-11-21 18:51:48 -06:00
Simone Chemelli 4cfac18e1a
Fix firmware status check for Fritz (#59578) 2021-11-12 19:09:03 +01:00
Simone Chemelli c6a1fe0a5d
Fix condition for fritz integration (#59281) 2021-11-07 15:17:50 +01:00
Simone Chemelli f8af44cac2
Fritz clean device_tracker service (#56535) 2021-10-27 05:01:06 -05:00
Robert Hillis 63646a19cc
Use DeviceInfo Class F-G (#58255) 2021-10-23 12:01:21 +02:00
epenet f6ffae9e10
Use DeviceInfo on components with configuration_url (#58223)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-10-22 17:40:13 +02:00
epenet 8dfa628af0
Use DeviceInfo on components with via_device (A-G) (#58210)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-10-22 12:12:19 +02:00
Simone Chemelli 1a978662ec
Add configuration_url and entity_category to Fritz (#58004) 2021-10-18 19:30:45 -07:00
Simone Chemelli d51d70d3be
Fix Fritz shutdown race condition (#57148) 2021-10-05 20:26:18 -07:00
Simone Chemelli 735c9f8f0b
Revert fritz pref_disable_new_entities handling (#56891) 2021-10-01 16:18:49 +02: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 34ef47db55
Fritz honor sys option pref_disable_new_entities (#56740) 2021-09-28 20:59:03 -07:00
Simone Chemelli 37d6824ed4
Increase pool max size for urllib3 in Fritz integration (#53461) 2021-07-26 16:44:58 +02:00
Aaron David Schneider 3d3db4b044
Replace fritz profile switches by per device parental control switches (#52721)
* removes old profile switches and add new switches based on new method

* use Ellipsis instead of pass

* refactor async_add_profile_switches

* - add forgotten update_ha_state
- add notimplemtederror for devicebase

* Update homeassistant/components/fritz/common.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/fritz/common.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* comments

* fix for devices that were not connected

* Update homeassistant/components/fritz/common.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/fritz/switch.py

Co-authored-by: J. Nick Koston <nick@koston.org>

Co-authored-by: J. Nick Koston <nick@koston.org>
2021-07-16 13:38:37 +02:00
Simone Chemelli 5c82776411
Fix Fritz default consider home value (#52648) 2021-07-07 20:19:31 +02: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 7959225fef
Add switch platform to Fritz (#51610)
* Add switch platform to Fritz

* Fix tests

* Pylint

* Small fix

* Bump fritzprofiles to fix log level and identifier

* Fix different WiFi networks with same name

* Changed exposed attributes

* Moved to extra_state

* Remove redundant lambda

* Add missing wait

* Removed identifiers

* Update homeassistant/components/fritz/switch.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/fritz/switch.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Add mapping dict

* Device Profile disabled by default

* Heavy cleanup

* Tweak

* Bug fix

* Update homeassistant/components/fritz/switch.py

Co-authored-by: Aaron David Schneider <aaron.schneider@nbi.ku.dk>

* Fix port forward switching + small log improvement

* Cleanup from old approach

* Handle port mapping hot removal (from device)

* Minor fixes

* Typying

* Removed lambda call

* Last missing strict typing

* Split get entities

* Func rename

* Move FritzBoxBaseSwitch to switch.py

* Removed lambda

* Update homeassistant/components/fritz/common.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/fritz/common.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/fritz/switch.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/fritz/switch.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/fritz/switch.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/fritz/switch.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Fixes after applying comments

* Remvoed redundant try block

* Removed broad-except

* Optimized async/sync switch

* Update homeassistant/components/fritz/switch.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/fritz/switch.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/fritz/switch.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Address remaining comments

* Optimize return list

* More optimization for return lists

* Some missing strict typing

* Redundant typing

* Update homeassistant/components/fritz/switch.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Wrong if

* Introduce const for profile status

* Update homeassistant/components/fritz/switch.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/fritz/switch.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Fix mypy

* Switch back to get_local_ip()

* Address latest comments

Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Aaron David Schneider <aaron.schneider@nbi.ku.dk>
2021-06-29 11:57:34 -04: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
Michael a232f2ce7d
Fix last activity consideration for AVM Fritz!Tools device tracker (#51375) 2021-06-03 15:42:59 -07:00
Joakim Sørensen 81097dbe40
Use get with default for consider home (#51194) 2021-05-28 12:02:35 +02:00
Simone Chemelli ef33bbe9bc
Fix dispatcher for Fritz integration (#51061) 2021-05-25 12:43:50 +02:00
Simone Chemelli 987e8ed5ed
Add consider_home option to Fritz device_tracker (#50741)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-05-24 09:54:57 -05: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
Simone Chemelli d877c0c1ff
Add Fritz services (#50056) 2021-05-11 15:56:52 -05:00
Simone Chemelli 55c96ae86f
Create Fritz device and connectivity sensor (#49699)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-05-03 17:11:21 -10:00
Aaron David Schneider 0421c55bf1
Fix Fritz device tracker multiple routers (#49808)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-04-29 11:10:36 -07:00
Simone Chemelli 85438db1ec
Fix Fritz unload (#49669) 2021-04-25 09:07:31 -10:00
Marc Mueller 7b33ed11c2
Fix missing default value in fritz scan_devices (#49668) 2021-04-25 20:28:40 +02:00
tkdrob 7ecd4f5eed
Fix pylint failures caused by fritz (#49655)
* Fix test failures caused by fritz
* Fix typing.Any

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-04-25 15:48:03 +02:00
Simone Chemelli b92f29997e
Rework Fritz config_flow and device_tracker (#48287)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-04-25 00:10:33 -10:00