From 2d94aceedfd8e47fdd5b5769e54cd29d6545a525 Mon Sep 17 00:00:00 2001 From: Tomaae Date: Thu, 3 Feb 2022 10:25:23 +0100 Subject: [PATCH] expanded switch entity description --- custom_components/mikrotik_router/switch_types.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/custom_components/mikrotik_router/switch_types.py b/custom_components/mikrotik_router/switch_types.py index 7f9ca5c..a0a28b3 100644 --- a/custom_components/mikrotik_router/switch_types.py +++ b/custom_components/mikrotik_router/switch_types.py @@ -141,11 +141,16 @@ class MikrotikSwitchEntityDescription(SwitchEntityDescription): device_class: str = SwitchDeviceClass.SWITCH + icon_enabled: str = "" + icon_disabled: str = "" ha_group: str = "" ha_connection: str = "" ha_connection_value: str = "" data_path: str = "" data_attribute: str = "" + data_is_on: str = "enabled" + data_switch_path: str = "" + data_switch_parameter: str = "disabled" data_name: str = "" data_uid: str = "" data_reference: str = ""