Commit Graph

206 Commits (fe1229a7d9ed162376f5290869238208dbdf9366)

Author SHA1 Message Date
Aaron David Schneider 39d5ae77a9
Address late review of Fritz switch (#54842) 2021-08-24 18:10:32 +02: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
GitHub Action 0626542a14 [ci skip] Translation update 2021-08-12 00:14:10 +00: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
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
Simone Chemelli d877c0c1ff
Add Fritz services (#50056) 2021-05-11 15:56:52 -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
J. Nick Koston d5e39e8748
Remove redundant names from config flow titles (#50380) 2021-05-10 22:14:33 -07:00
HomeAssistant Azure dfe8ab6666 [ci skip] Translation update 2021-05-10 00:04:47 +00:00
HomeAssistant Azure 6665a62557 [ci skip] Translation update 2021-05-09 00:04:11 +00: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
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
HomeAssistant Azure 0df9454310 [ci skip] Translation update 2021-05-04 00:03:46 +00:00
HomeAssistant Azure 04266301e9 [ci skip] Translation update 2021-05-03 00:05:16 +00:00
HomeAssistant Azure 796f9cad1f [ci skip] Translation update 2021-05-02 00:04:24 +00:00
Milan Meulemans 29d72714f3
Replace dict with DeviceInfo (#49950)
* Replace dict with DeviceInfo

* Clean up

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-05-02 00:37:19 +02:00
J. Nick Koston 671aabf9f4
Remove unused imports in fritz, nest, and somfy to fix CI (#49940) 2021-04-30 21:58:48 -10:00
Franck Nijhof e652ff3a6a
Clean up connection classes in integrations D-G (#49890) 2021-04-30 21:02:21 -10:00
Franck Nijhof e1a3ef3d69
Clean up config entry handlers decorator from config flows (#49932) 2021-04-30 23:28:25 +02:00
HomeAssistant Azure 38a03009ae [ci skip] Translation update 2021-04-30 00:04:58 +00: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
HomeAssistant Azure 27816aa4d5 [ci skip] Translation update 2021-04-29 00:03:34 +00:00
J. Nick Koston a67b9eff17
Reduce config entry setup/unload boilerplate D-F (#49733) 2021-04-26 20:46:49 -10:00
HomeAssistant Azure cd7d3ed12a [ci skip] Translation update 2021-04-27 00:04:45 +00:00
HomeAssistant Azure e5e71c2026 [ci skip] Translation update 2021-04-26 00:04:21 +00: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
Daniel Rheinbay 83ecabe0a2
Bump fritzconnection to 1.4.2 (#49356) 2021-04-19 14:25:46 +02:00
Franck Nijhof 055cdc64c0
Add support for IoT class in manifest (#46935) 2021-04-15 10:21:38 +02:00
springstan 25e717c8d2
Bump fritzconnection to 1.4.0 (#43996) 2020-12-07 03:16:43 +01:00
springstan 1366354725
Clean up yaml configurations for all fritz integrations (#39995) 2020-11-10 10:08:49 +01:00
Simone Chemelli 6a67d29a28
Bump fritzconnection from 1.2.0 to 1.3.4 (#40508)
* Bump fritzconnection from 1.2.0 to 1.3.4

* Updated requirements

* Update other integrations
2020-10-27 16:34:08 +01:00
J.P. Hutchins c677489535
Handle Fritz exception and log warning (#42145) 2020-10-21 11:02:44 +02:00
Bram Kragten b9d957837e
Revert "Update fritzconnection to 1.3.0" (#37278)
This reverts commit 2f46a81e3e.
2020-07-01 13:31:06 +02:00
Sven-Hendrik Haase 2f46a81e3e
Update fritzconnection to 1.3.0 (#37212)
This effectively fixes an important bug where the graph would go negative because 1.2.0 used the 32-bit counters and 1.3.0 uses 64-bit counters will not realistically go negative any time soon.
2020-06-29 17:49:22 -07:00
Paulus Schoutsen f1d3c0d19b
Remove unused manifest fields (#33595) 2020-04-03 12:58:19 -07:00
Franck Nijhof be388a4797
Fix spelling of AVM FRITZ!Box in manifest (#31765) 2020-02-12 16:12:11 -08:00
Bas Delfos 0d688faa56 Fix 'NewIPAddress' error in component fritz (#30210)
* Fix 'NewIPAddress' error in component fritzbox

* Upgrade to fritzconnection 1.2.0
2020-01-14 09:46:16 +01:00
Franck Nijhof 345cc244ed
Correct names in manifests (C-L) (#30532) 2020-01-07 08:19:17 +01:00
Franck Nijhof a84741392b
Format all manifests with prettier (#30521) 2020-01-06 21:28:23 +01:00
Aaron David Schneider 5edf72c9ea fix issuecomment-570284682 (#30405) 2020-01-02 14:17:37 -06:00
Ville Skyttä e6388e186c
Remove unnecessary string literal concatenations (#30360) 2020-01-02 21:17:10 +02:00
Aaron David Schneider 99bc911f7f Add attributes to fritz device_tracker (#30350)
* add attributes to device_tracker

* fix pylint

* requested changes

* docstring updated
2020-01-01 22:03:37 +01:00
springstan 2a95180d3b Move imports in fritzbox, fritz device tracker, fritzdect, fritzbox netmonitor (#27746)
* Moved imports to top-level in fritzbox_netmonitor component

* Moved imports to top-level in fritz, fritzbox and fritzdect
2019-10-18 14:54:56 -07:00
Quentame fdf839774e Move imports in fritz + fritzbox_netmonitor component (#27823)
* Move imports in fritz + fritzbox_netmonitor component

* Fix PyLint 1
2019-10-17 17:17:24 -07:00
AaronDavidSchneider d534f30042 Update fritzconnection requirement to 0.8.4 (#27698)
* update fritzconnection requirement

* update requierements for other components and requierements_all
2019-10-15 17:11:17 +02:00
Franck Nijhof c7da781efc Update documentation link URL for integrations in all manifests (#27114) 2019-10-02 09:25:44 -07:00
ThaSiouL 10d63e46d7 Fritz device tracker: set 'scanning' log to debug (#26043)
Changed the logging level for the polling of the fritz device tracker from info to debug.  The message was logged up to 6 times per minute and bloated the log file.
2019-08-18 18:08:26 +03:00
Paulus Schoutsen 4de97abc3a Black 2019-07-31 12:25:30 -07:00
cgtobi 2c07bfb9e0 Remove dependencies and requirements (#23024)
* Remove dependencies and requirements

* Revert "Remove dependencies and requirements"

This reverts commit fe7171b4cd.

* Remove dependencies and requirements

* Revert "Remove dependencies and requirements"

This reverts commit 391355ee2c.

* Remove dependencies and requirements

* Fix flake8 complaints

* Fix more flake8 complaints

* Revert non-component removals
2019-04-12 10:13:30 -07:00
Paulus Schoutsen cfe4cf30ad
Add manifests (#22699)
* Add manifests

* Update auto name

* Update codeowners

* Add requirements from platforms

* Minor cleanup

* Incorporate changes from awarecan PR
2019-04-03 21:14:45 -07:00
Tobias Sauerwein 048b100eea Clean up docstrings (#22679)
* Clean up docstrings

* Fix long lines

* Fix more docstrings

* Fix more docstrings

* Fix more docstrings
2019-04-03 17:40:03 +02:00
Paulus Schoutsen f5076188ef
Consolidate all platforms that have no tests (#22096)
* Consolidate

* Fix tests

* Update imports

* Fix import

* Use importlib because integration and package share name

* Fix more tests

* Update .coveragerc and CODEOWNERS
2019-03-16 20:44:05 -07:00