1
mirror of https://github.com/home-assistant/core synced 2024-09-12 15:16:21 +02:00
Commit Graph

349 Commits

Author SHA1 Message Date
GitHub Action
109d1844b3 [ci skip] Translation update 2022-06-21 00:22:51 +00:00
Michael
8c34067f17
Fix creating unique IDs for WiFi switches in Fritz!Tools (#73183) 2022-06-07 16:11:38 -07:00
epenet
756988fe20
Use Mapping for async_step_reauth (f-o) (#72764) 2022-06-02 14:17:09 +02:00
GitHub Action
7746715590 [ci skip] Translation update 2022-06-02 00:27:51 +00:00
GitHub Action
ceb8bb4745 [ci skip] Translation update 2022-05-21 00:22:49 +00:00
GitHub Action
3a13ffcf13 [ci skip] Translation update 2022-05-19 00:26:11 +00:00
GitHub Action
37f81b261d [ci skip] Translation update 2022-05-16 00:24:28 +00:00
Michael
287bc5e3dc
Add release url to Fritz!Tools update entity (#71606)
* add release url to update entity

* fix test
2022-05-09 23:07:47 +03:00
GitHub Action
348016dbbf [ci skip] Translation update 2022-04-29 00:22:21 +00:00
Marc Mueller
97af164858
Prepare for upcoming mypy update (#70800) 2022-04-26 07:41:52 -07:00
Mask3007
2228ea5ee0
Add update entity to fritz integration (#70096) 2022-04-19 17:12:21 +02:00
Simone Chemelli
bf23abdfae
Avoid fritz API calls during shutdown (#69225) 2022-04-04 11:04:54 +02:00
Simone Chemelli
beb5184720
Add Fritz visit device link to discovered devices (#69186) 2022-04-03 11:59:47 +02:00
Michael
55c6112a28
ignore ip6 link local address on ssdp discovery (#69135) 2022-04-02 22:34:12 +03:00
epenet
ecd43f391f
Prettify json (manifest.json) (#68886) 2022-03-30 10:56:37 +02:00
epenet
e362871499
Prettify json (strings.json) (#68885) 2022-03-30 10:35:30 +02:00
Michael
3d64d1b76b
Add tests for Fritz!Tools sensors (#67776) 2022-03-29 16:54:16 -07:00
Michael
94c5dbfd16
Rework config flow in AVM Fritz!Tools (#67767) 2022-03-29 16:53:53 -07:00
Marc Mueller
354fc4c1ae
Update coordinator typing (2) [e-f] (#68462) 2022-03-21 14:13:16 +01:00
GitHub Action
c64b4d997b [ci skip] Translation update 2022-03-13 00:18:58 +00:00
GitHub Action
dc31f420ed [ci skip] Translation update 2022-03-12 00:17:47 +00:00
GitHub Action
d0afc31063 [ci skip] Translation update 2022-03-10 00:17:10 +00:00
GitHub Action
c374435282 [ci skip] Translation update 2022-03-08 00:18:11 +00:00
Simone Chemelli
405c2f9cf3
Fix internet access switch for old discovery (#67777) 2022-03-07 17:23:08 +01:00
GitHub Action
2957f4ce85 [ci skip] Translation update 2022-03-07 00:18:40 +00:00
GitHub Action
f5d25eaf8f [ci skip] Translation update 2022-03-06 00:18:25 +00:00
GitHub Action
acd906dfab [ci skip] Translation update 2022-03-05 00:19:17 +00:00
Simone Chemelli
777ae584d4
Add unique_id to Fritz diagnostics (#67384)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-03-04 14:43:33 -08:00
Simone Chemelli
53543f15a5
Allign logic for Fritz sensors and binary_sensors (#67623) 2022-03-04 14:38:28 -08:00
Simone Chemelli
749a76c4e1
Improve logging for Fritz switches creation (#67640) 2022-03-04 15:49:22 +01:00
GitHub Action
2242b023d3 [ci skip] Translation update 2022-03-04 00:21:35 +00:00
Simone Chemelli
b75993d809
Check if UPnP is enabled on Fritz device (#67512)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-03-03 15:41:50 -08:00
GitHub Action
e963ad96d4 [ci skip] Translation update 2022-03-01 00:23:47 +00:00
GitHub Action
1b97f48c1f [ci skip] Translation update 2022-02-28 00:19:57 +00:00
GitHub Action
479aa13211 [ci skip] Translation update 2022-02-27 00:19:29 +00:00
GitHub Action
0f418341f3 [ci skip] Translation update 2022-02-26 00:17:09 +00:00
GitHub Action
5e366d93fc [ci skip] Translation update 2022-02-25 00:17:52 +00:00
GitHub Action
6364e81be5 [ci skip] Translation update 2022-02-24 00:17:55 +00:00
Simone Chemelli
c76d2c4283
Fritz device_trackers for non mesh devices (#67006) 2022-02-22 16:35:48 -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
1274078f1b
Fix naming of device entities created by Fritz!Tools (#67076) 2022-02-22 15:39:19 -08:00
GitHub Action
102ae9f0e3 [ci skip] Translation update 2022-02-22 00:17:23 +00:00
Michael
660fb393f0
Enable sensors based on wan scenario in Fritz!Tools (#66944) 2022-02-21 18:03:38 +01:00
Simone Chemelli
f0fbc7bb2c
Fritz: fix unbound topology (#66877)
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-02-19 21:07:40 -08:00
GitHub Action
c4cc6ca0ba [ci skip] Translation update 2022-02-20 00:20:09 +00:00
Marc Mueller
4f20a8023b
Use assignment expressions [A-I] (#66880) 2022-02-19 17:21:26 +01:00
Simone Chemelli
4f2be58fe4
Fix wifi switches name for Fritz (#66529) 2022-02-18 00:13:36 -08:00
GitHub Action
208671418e [ci skip] Translation update 2022-02-16 00:14:09 +00:00
GitHub Action
ad0cb4831e [ci skip] Translation update 2022-02-14 00:15:30 +00:00
Simone Chemelli
e069074f9e
Fix mesh role for Fritz old devices (#66369) 2022-02-12 13:58:35 -08:00
Dave T
62d49dcf98
Fix missing refactors of EntityCategory.XXX (#66379)
* Fix missing refactors of EntityCategory.XXX

* Fix entity_category refactor for homewizard
2022-02-12 16:22:21 +02:00
Simone Chemelli
bfc3c29c6a
Change detection of router devices for Fritz (#65965) 2022-02-09 09:44:04 +01:00
Paulus Schoutsen
f820806e3c
Remove duplicate methods from Frtiz (#65956) 2022-02-06 14:38:26 -08:00
Michael
dc65c621ed
check wan access type (#65389) 2022-02-06 14:17:10 -08:00
Franck Nijhof
fa09cf663e
Update black to 22.1.0 (#65788) 2022-02-05 14:19:37 +01:00
Timo S
d6693cdff9
Add fritz set guest wifi password service (#62892)
* Add a new service set_guest_wifi_password to the fritz integration.

* Remove unnecessary params defaults

* Remove default password length

* Add service schema, cleanup code

* Fix min password length in services.yaml

* Move schema to `services.py`, add typing

* Add default password length from upstream lib

* Remove None typing

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2022-02-04 08:57:14 +01:00
GitHub Action
b2f0882e67 [ci skip] Translation update 2022-02-04 00:13:58 +00:00
Michael
8432fe7bd6
Extend diagnostics data in Fritz!Tools (#65573) 2022-02-03 13:36:36 -08:00
Michael
80102e1e84
Fix data update when guest client disappears in Fritz!Tools (#65564)
Co-authored-by: Simone Chemelli <simone.chemelli@gmail.com>
2022-02-03 12:32:36 -08:00
Michael
1b8252fa2f
Fix wan_access switch for disconnected devices in Fritz!Tools (#65378) 2022-02-01 09:57:34 -08:00
Michael
c9f38355f7
Improve debugging and error handling in Fritz!Tools (#65324) 2022-01-31 15:28:11 -08:00
Simone Chemelli
a9af29cbe0
Add diagnostics support to Fritz (#65334)
* Add diagnostics support to Fritz

* Temporary remove tests

* coveragerc
2022-01-31 23:43:46 +01:00
GitHub Action
ca7d4234e1 [ci skip] Translation update 2022-01-31 00:14:28 +00:00
Michael
ef74dab352
Fix "internet access" switch for Fritz connected device without known IP address (#65190)
* fix get wan access

* small improvement
- default wan_access to None
- test if dev_info.ip_address is not empty
2022-01-30 13:22:32 -08:00
GitHub Action
77ef86faee [ci skip] Translation update 2022-01-30 00:14:21 +00:00
Simone Chemelli
3cde472e43
Fix status for Fritz device tracker (#65152) 2022-01-28 21:14:51 -08:00
J. Nick Koston
5b755b74fb
Add loggers to integration manifest.json (#65083) 2022-01-28 13:37:53 -08:00
Simone Chemelli
f369cef32f
Handle FritzInternalError exception for Fritz (#65124) 2022-01-28 08:32:46 -08:00
Simone Chemelli
02df6eb10e
Move call_action to AvmWrapper for Fritz (#64667) 2022-01-23 13:04:19 +01:00
Franck Nijhof
176f03d4ac
Allow toggles (switches) state to be None (#64621) 2022-01-23 11:31:01 +01:00
GitHub Action
47d3fb1dec [ci skip] Translation update 2022-01-23 00:13:53 +00:00
GitHub Action
9098c71cd4 [ci skip] Translation update 2022-01-22 00:13:08 +00: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
Josh Soref
83c0b7910b
spelling: components/fritz (#64259)
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
2022-01-17 11:09:58 +01:00
Michael
e609f196bc
add @mib1185 as codeowner (#64134) 2022-01-14 22:06:36 +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
epenet
431d15bf8b
Remove deprecated async_get_scanner from fritz (#63857)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-11 08:27:33 +01:00
Simone Chemelli
e6419fd505
Fritz: small optimization (#63693)
* Revert "Improve availability for Shelly Valve"

This reverts commit d8cbd81b456820153522e6d86bbd00c4a4a31129.

* Small optimization
2022-01-09 00:39:51 +02:00
Simone Chemelli
e3c793718c
Add button and deprecate service for Fritz cleanup (#63692)
* Revert "Improve availability for Shelly Valve"

This reverts commit d8cbd81b456820153522e6d86bbd00c4a4a31129.

* Add cleanup button

* Wrong commit

* Add service deprecation warning
2022-01-09 00:38:28 +02:00
Simone Chemelli
38244dd245
Fritz cleanup: part2 (triggers for button/service) (#63564)
* Revert "Improve availability for Shelly Valve"

This reverts commit d8cbd81b456820153522e6d86bbd00c4a4a31129.

* Fritz cleanup: part2 (triggers for button/service)

* Remove commit

* Fix func overlapping

* Apply review comments

* Remove too early warning

* Missing wrapping
2022-01-08 19:23:12 +01:00
GitHub Action
0827608302 [ci skip] Translation update 2022-01-08 00:14:39 +00:00
Michael
f8a78a49bb
Fix cleanup service to just run on loaded config entries in Fritz!Tools (#63570) 2022-01-06 12:28:12 -10:00
Simone Chemelli
60b6871b46
Fritz cleanup: part1 (naming) (#63535) 2022-01-06 12:15:40 +01:00
Simone Chemelli
c3a432620c
Improve cleanup service for Fritz (#61484) 2022-01-05 20:21:15 +01:00
Simone Chemelli
cd5bd2ff8b
Fix internet access switch for Fritz Wi-Fi guest devices (#63407) 2022-01-05 12:47:47 +01:00
Paulus Schoutsen
2b4bb49eb7
Make device tracker entities work better (#63328)
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-01-04 23:16:43 -08:00
Simone Chemelli
fc02260146
Fix management of Fritz repeaters (#63110) 2022-01-02 14:59:41 +01:00
Simone Chemelli
6725e4033c
Use mesh topology and add 3 more attr for Fritz (#63049)
* Use mesh topology and add 3 more attr

* Apply review comment
2021-12-30 23:23:55 +01:00
Simone Chemelli
c2938c50c3
Fix unique id for Fritz buttons (#63072)
* Fix unique id for Fritz buttons

* Apply review comment
2021-12-30 17:44:02 +01:00
Simone Chemelli
da24b7ce2f
Bump fritzconnection and remove workarounds (#63050)
* Bump fritzconnection and remove workarounds

* Cleanup fritzbox_callmonitor
2021-12-30 12:53:54 +01:00
GitHub Action
f07030c425 [ci skip] Translation update 2021-12-24 00:13:45 +00:00
Simone Chemelli
51a49f3d39
Fix missing exception handling from upstream lib in Fritz (#62617)
* Fix missing exception handling from upstream lib

* isort
2021-12-22 20:59:56 +01:00
Simone Chemelli
925e4998b4
Fix missing object assignment for Fritz (#62575) 2021-12-22 12:59:54 +01:00
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
GitHub Action
f75b325ab2 [ci skip] Translation update 2021-12-12 00:14:30 +00: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
cd1b923e16
Use platform enum (2) [E-G] (#60933) 2021-12-04 13:26:40 +01:00
GitHub Action
68ca0a05c8 [ci skip] Translation update 2021-12-04 00:13:16 +00:00
Simone Chemelli
00605c1e35
Fix old model network suffix for Fritz (#60802) 2021-12-02 09:59:07 +01:00
epenet
6544b440d2
Use dataclass properties in fritz discovery (#60697)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-01 14:02:58 +01:00
epenet
ec1c52d945
Use dataclass for SsdpServiceInfo (#59931)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-29 06:10:07 -10:00
Simone Chemelli
3cd80b95db
Logging issue workaround for fritzconnection library (#60448)
* Logging issue workaround

* Better approach
2021-11-27 07:56:53 -08:00
GitHub Action
96313bbbe0 [ci skip] Translation update 2021-11-27 00:12:17 +00:00
Marc Mueller
de78c4f0f8
Import Callable from collections.abc (#60354) 2021-11-25 22:23:48 +01:00
GitHub Action
d3c020325b [ci skip] Translation update 2021-11-25 00:13:33 +00:00
Michael
6588879b6e
Use native datetime value in AVM Fritz!Tools sensors (#60233) 2021-11-23 21:20:51 +01:00
GitHub Action
9e606abb0c [ci skip] Translation update 2021-11-23 00:13:54 +00:00
Simone Chemelli
82a422930b
Honor "Enable newly added entities" for Fritz (#59948) 2021-11-21 18:51:48 -06:00
GitHub Action
31d4239b64 [ci skip] Translation update 2021-11-22 00:13:02 +00:00
GitHub Action
e98977fb49 [ci skip] Translation update 2021-11-21 00:13:51 +00:00
GitHub Action
72b0eb719e [ci skip] Translation update 2021-11-20 00:12:27 +00:00
GitHub Action
29dc9de08f [ci skip] Translation update 2021-11-19 00:14:01 +00:00
Simone Chemelli
06d35853b6
Fix typo in attribute for Fritz (#59791) 2021-11-16 19:30:50 +01:00
Simone Chemelli
4cfac18e1a
Fix firmware status check for Fritz (#59578) 2021-11-12 19:09:03 +01:00
GitHub Action
3f2b1fa952 [ci skip] Translation update 2021-11-12 00:12:35 +00:00
GitHub Action
e35b83081e [ci skip] Translation update 2021-11-08 00:12:31 +00:00
Simone Chemelli
c6a1fe0a5d
Fix condition for fritz integration (#59281) 2021-11-07 15:17:50 +01:00
GitHub Action
332a571bb4 [ci skip] Translation update 2021-11-07 00:12:38 +00:00
GitHub Action
4e419d8c6f [ci skip] Translation update 2021-11-01 00:13:04 +00:00
Simone Chemelli
f8af44cac2
Fritz clean device_tracker service (#56535) 2021-10-27 05:01:06 -05:00
Simone Chemelli
9d231ac2f8
Abort Fritz config flow for configured hostnames (#58140)
* Abort Fritz config flow for configured hostnames

* Fix tests + consider all combinations

* Fix async context
2021-10-25 22:44:23 +02: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
Simone Chemelli
1a9ac6b657
Switch Fritz to device selector for services (#58005) 2021-10-22 14:34:02 +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
GitHub Action
f9d985553c [ci skip] Translation update 2021-10-22 00:14:10 +00: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
GitHub Action
c76e15149c [ci skip] Translation update 2021-10-17 00:12:27 +00:00
Simone Chemelli
d51d70d3be
Fix Fritz shutdown race condition (#57148) 2021-10-05 20:26:18 -07:00
GitHub Action
f42c2f5170 [ci skip] Translation update 2021-10-02 12:59:05 +00:00
Simone Chemelli
73e58c8c62
Bump fritzconnection to 1.7.0 (#56924) 2021-10-02 09:13:40 +02: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
Simone Chemelli
b9d81c3a7e
Handle Fritz portmapping with same name (#56398) 2021-09-29 15:11:22 -07: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
715ce3185b
Handle Fritz InternalError (#55711) 2021-09-04 13:56:59 -07:00
GitHub Action
19dcb19d07 [ci skip] Translation update 2021-09-04 00:13:17 +00:00
Simone Chemelli
fa7873dc6d
Fix noise/attenuation units to UI display for Fritz (#55447) 2021-08-30 08:43:11 -07:00
GitHub Action
65d14909ee [ci skip] Translation update 2021-08-27 00:14:42 +00: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
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