Commit Graph

101 Commits (d3007c26b31fab0387452371b700d49db640ec89)

Author SHA1 Message Date
Simone Chemelli 582f2ae2f6
Two fixes (#54102) 2021-08-05 19:24:41 -07:00
GitHub Action ba93bda3ad [ci skip] Translation update 2021-08-05 00:34:46 +00:00
Simone Chemelli 316c2baa12
Fix divider for Fritz sensors (#53980) 2021-08-04 21:53:07 +02:00
GitHub Action 8c5620e74b [ci skip] Translation update 2021-08-02 03:40:04 +00:00
Simone Chemelli 37d6824ed4
Increase pool max size for urllib3 in Fritz integration (#53461) 2021-07-26 16:44:58 +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
Simone Chemelli 75f7d3d696
Replace util.get_local_ip in favor of components.network.async_get_source_ip() - part 1 (#52980) 2021-07-22 08:12:33 -10:00
Simone Chemelli db1a8e9336
Fix similar network names for Fritz (#53278) 2021-07-21 19:31:51 +02: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 1746103e0e
Add friendly name to Fritz profile switches (#53190) 2021-07-20 18:38:16 +02:00
Marc Mueller f6b162bc39
Add pylint CodeStyle extension (#53147) 2021-07-19 06:57:06 -07:00
GitHub Action 531733da7b [ci skip] Translation update 2021-07-19 00:09:50 +00:00
Simone Chemelli b13119884c
Fix units for Fritz network sensors (#53026) 2021-07-16 11:01:00 -07: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
Daniel Hjelseth Høyer fbad453c89
Pylint 2.9.3 (#52972)
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-07-14 21:44:57 -07:00
GitHub Action b484969b09 [ci skip] Translation update 2021-07-11 00:09:40 +00:00
GitHub Action b347226820 [ci skip] Translation update 2021-07-10 00:09:24 +00:00
Simone Chemelli 5c82776411
Fix Fritz default consider home value (#52648) 2021-07-07 20:19:31 +02:00
Simone Chemelli 046eb1690a
Fix Fritz Wi-Fi 6 networks with same name as other Wi-Fi (#52588) 2021-07-06 15:49:22 +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 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 8347cf3731
Fix Fritz call deflection list (#52443) 2021-07-02 19:21:05 +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
GitHub Action d805e971b4 [ci skip] Translation update 2021-06-22 00:14:17 +00:00
Simone Chemelli fbe507a9c1
Strict types - first part (#51479) 2021-06-13 16:45:35 +02:00
Ville Skyttä 7d03b02192
Spelling fixes (#51642) 2021-06-11 13:35:03 +02:00
GitHub Action c81df50191 [ci skip] Translation update 2021-06-06 00:19:43 +00:00
Michael a232f2ce7d
Fix last activity consideration for AVM Fritz!Tools device tracker (#51375) 2021-06-03 15:42:59 -07:00
GitHub Action 2077efb207 [ci skip] Translation update 2021-05-30 00:24:18 +00:00
Joakim Sørensen 076544a1b5
Revert "Bump config version to 2 for AVM Fritz Tools (#51176)" (#51193) 2021-05-28 14:00:16 +02:00
Joakim Sørensen 81097dbe40
Use get with default for consider home (#51194) 2021-05-28 12:02:35 +02:00
Michael d200f1e504
Bump config version to 2 for AVM Fritz Tools (#51176) 2021-05-28 11:12:46 +02:00
GitHub Action f45bc3abc7 [ci skip] Translation update 2021-05-27 00:17:03 +00:00
GitHub Action c302b5d4eb [ci skip] Translation update 2021-05-26 00:16:09 +00:00
Simone Chemelli ef33bbe9bc
Fix dispatcher for Fritz integration (#51061) 2021-05-25 12:43:50 +02:00
GitHub Action 0fb2504e0c [ci skip] Translation update 2021-05-25 00:12:25 +00: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
GitHub Action 460092ec9a [ci skip] Translation update 2021-05-23 00:13:25 +00:00
Ruslan Sayfutdinov 00208ff0d8
Use type safe import for device_tracker.PLATFORM_SCHEMA (#50860) 2021-05-21 13:08:40 +02:00
GitHub Action 25bf884156 [ci skip] Translation update 2021-05-21 00:12:09 +00:00
GitHub Action 0a49de75d9 [ci skip] Translation update 2021-05-19 00:11:31 +00:00
Michael 2cd2e46d73
Disable AVM FRITZ!Box Tools device_tracker entities by default (#50791) 2021-05-18 22:16:49 +02:00
GitHub Action 1f80defe3a [ci skip] Translation update 2021-05-18 00:12:13 +00:00
GitHub Action 877cb43c06 [ci skip] Translation update 2021-05-17 05:17:18 +00:00
Michael 22d8f9519e
Fix configflow strings for step user in fritz (#50742) 2021-05-16 20:49:31 -07: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
HomeAssistant Azure 7df47664e8 [ci skip] Translation update 2021-05-12 00:04:03 +00:00
Simone Chemelli 8d7318430c
Fix mypy for Fritz after #50056, #50327 conflict (#50497) 2021-05-11 18:47:02 -05:00