mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 07:37:34 +00:00
Remove duplicate methods
This commit is contained in:
parent
9b471ab653
commit
1338b347b5
@ -574,13 +574,6 @@ class AvmWrapper(FritzBoxTools):
|
|||||||
partial(self.get_wan_link_properties)
|
partial(self.get_wan_link_properties)
|
||||||
)
|
)
|
||||||
|
|
||||||
async def async_get_wan_link_properties(self) -> dict[str, Any]:
|
|
||||||
"""Call WANCommonInterfaceConfig service."""
|
|
||||||
|
|
||||||
return await self.hass.async_add_executor_job(
|
|
||||||
partial(self.get_wan_link_properties)
|
|
||||||
)
|
|
||||||
|
|
||||||
async def async_get_port_mapping(self, con_type: str, index: int) -> dict[str, Any]:
|
async def async_get_port_mapping(self, con_type: str, index: int) -> dict[str, Any]:
|
||||||
"""Call GetGenericPortMappingEntry action."""
|
"""Call GetGenericPortMappingEntry action."""
|
||||||
|
|
||||||
@ -685,13 +678,6 @@ class AvmWrapper(FritzBoxTools):
|
|||||||
"WANCommonInterfaceConfig", "1", "GetCommonLinkProperties"
|
"WANCommonInterfaceConfig", "1", "GetCommonLinkProperties"
|
||||||
)
|
)
|
||||||
|
|
||||||
def get_wan_link_properties(self) -> dict[str, Any]:
|
|
||||||
"""Call WANCommonInterfaceConfig service."""
|
|
||||||
|
|
||||||
return self._service_call_action(
|
|
||||||
"WANCommonInterfaceConfig", "1", "GetCommonLinkProperties"
|
|
||||||
)
|
|
||||||
|
|
||||||
def set_wlan_configuration(self, index: int, turn_on: bool) -> dict[str, Any]:
|
def set_wlan_configuration(self, index: int, turn_on: bool) -> dict[str, Any]:
|
||||||
"""Call SetEnable action from WLANConfiguration service."""
|
"""Call SetEnable action from WLANConfiguration service."""
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user