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>
This commit is contained in:
parent
7d52c30e36
commit
3d3db4b044
7 changed files with 212 additions and 181 deletions
|
@ -19,11 +19,7 @@ FRITZ_SERVICES = "fritz_services"
|
|||
SERVICE_REBOOT = "reboot"
|
||||
SERVICE_RECONNECT = "reconnect"
|
||||
|
||||
SWITCH_PROFILE_STATUS_OFF = "never"
|
||||
SWITCH_PROFILE_STATUS_ON = "unlimited"
|
||||
|
||||
SWITCH_TYPE_DEFLECTION = "CallDeflection"
|
||||
SWITCH_TYPE_DEVICEPROFILE = "DeviceProfile"
|
||||
SWITCH_TYPE_PORTFORWARD = "PortForward"
|
||||
SWITCH_TYPE_WIFINETWORK = "WiFiNetwork"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue