From 83ad3ef86bc09f065968691743090f9079084d6b Mon Sep 17 00:00:00 2001 From: Alexander Ryazanov Date: Tue, 17 May 2022 21:54:34 +0300 Subject: [PATCH] refactor: temporarily disable setup to avoid malicious activity triggers --- custom_components/lkcomu_interrao/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/custom_components/lkcomu_interrao/__init__.py b/custom_components/lkcomu_interrao/__init__.py index 0249747..3d016bc 100644 --- a/custom_components/lkcomu_interrao/__init__.py +++ b/custom_components/lkcomu_interrao/__init__.py @@ -187,6 +187,14 @@ async def async_setup(hass: HomeAssistantType, config: ConfigType): async def async_setup_entry( hass: HomeAssistantType, config_entry: config_entries.ConfigEntry ) -> bool: + # !!! SETUP TEMPORARILY DISABLED !!! + # !!! SETUP TEMPORARILY DISABLED !!! + # !!! SETUP TEMPORARILY DISABLED !!! + return False; + # !!! SETUP TEMPORARILY DISABLED !!! + # !!! SETUP TEMPORARILY DISABLED !!! + # !!! SETUP TEMPORARILY DISABLED !!! + type_ = config_entry.data[CONF_TYPE] username = config_entry.data[CONF_USERNAME] unique_key = (type_, username)