Skip to content

Commit

Permalink
rejigger
Browse files Browse the repository at this point in the history
  • Loading branch information
dmulcahey committed Mar 24, 2024
1 parent 3f3be1f commit d40329d
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions zha/application/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,7 @@ def __init__(self, config: ZHAData) -> None:
def get_application_controller_data(self) -> tuple[ControllerApplication, dict]:
"""Get an uninitialized instance of a zigpy `ControllerApplication`."""
radio_type = RadioType[self.config.config_entry_data["data"][CONF_RADIO_TYPE]]

app_config = self.config.yaml_config.get(CONF_ZIGPY, {})
# pylint: disable=pointless-string-statement
"""TODO
database = self.config.get(
CONF_DATABASE,
self.hass.config.path(DEFAULT_DATABASE_NAME),
)
app_config[CONF_DATABASE] = database
"""
app_config[CONF_DEVICE] = self.config.config_entry_data["data"][CONF_DEVICE]

if CONF_NWK_VALIDATE_SETTINGS not in app_config:
Expand All @@ -121,23 +112,6 @@ def get_application_controller_data(self) -> tuple[ControllerApplication, dict]:
):
app_config[CONF_USE_THREAD] = False

# pylint: disable=pointless-string-statement
"""TODO
# Local import to avoid circular dependencies
# pylint: disable-next=import-outside-toplevel
from homeassistant.components.homeassistant_hardware.silabs_multiprotocol_addon import (
is_multiprotocol_url,
)
# Until we have a way to coordinate channels with the Thread half of multi-PAN,
# stick to the old zigpy default of channel 15 instead of dynamically scanning
if (
is_multiprotocol_url(app_config[CONF_DEVICE][CONF_DEVICE_PATH])
and app_config.get(CONF_NWK, {}).get(CONF_NWK_CHANNEL) is None
):
app_config.setdefault(CONF_NWK, {})[CONF_NWK_CHANNEL] = 15
"""

return radio_type.controller, radio_type.controller.SCHEMA(app_config)

@classmethod
Expand Down

0 comments on commit d40329d

Please sign in to comment.