Skip to content

Commit

Permalink
remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
dmulcahey committed Apr 6, 2024
1 parent f7a5303 commit ea077d7
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions zha/application/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import binascii
import collections
from collections.abc import Callable
from contextlib import suppress
import dataclasses
from dataclasses import dataclass
import enum
Expand Down Expand Up @@ -180,17 +179,6 @@ def async_is_bindable_target(source_zha_device: Device, target_zha_device: Devic
return False


def async_get_zha_config_value(
zha_data: ZHAData, section: str, config_key: str, default: _T
) -> _T:
"""Get the value for the specified configuration from the ZHA config entry."""
with suppress(KeyError):
config_value = zha_data.config[section][config_key]
if config_value is None:
return default
return config_value


def convert_install_code(value: str) -> zigpy.types.KeyData:
"""Convert string to install code bytes and validate length."""

Expand Down

0 comments on commit ea077d7

Please sign in to comment.