Skip to content

Commit

Permalink
Add tuya_magic as official service to fix reload
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeweerd committed Aug 22, 2023
1 parent 24f49b3 commit 4a716b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions custom_components/zha_toolkit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,14 @@
},
extra=vol.ALLOW_EXTRA,
),
S.TUYA_MAGIC: vol.Schema(
{
vol.Required(ATTR_IEEE): vol.Any(
cv.entity_id_or_uuid, t.EUI64.convert
),
},
extra=vol.ALLOW_EXTRA,
),
S.UNBIND_COORDINATOR: vol.Schema(
{
vol.Required(ATTR_IEEE): vol.Any(
Expand Down
1 change: 1 addition & 0 deletions custom_components/zha_toolkit/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class SERVICE_consts: # pylint: disable=too-few-public-methods
REMOVE_GROUP = "remove_group"
SCAN_DEVICE = "scan_device"
STATE_VALUE_TEMPLATE = "state_value_template"
TUYA_MAGIC = "tuya_magic"
UNBIND_COORDINATOR = "unbind_coordinator"
UNBIND_GROUP = "unbind_group"
ZCL_CMD = "zcl_cmd"
Expand Down

0 comments on commit 4a716b2

Please sign in to comment.