From ee5df88915b685a7bc1334131fe327b1f8a845f6 Mon Sep 17 00:00:00 2001 From: Lyfesaver <61745478+lyfesaver74@users.noreply.github.com> Date: Thu, 2 Oct 2025 15:59:56 -0500 Subject: [PATCH] Delete __init__.py --- __init__.py | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 __init__.py diff --git a/__init__.py b/__init__.py deleted file mode 100644 index 57c8b3e..0000000 --- a/__init__.py +++ /dev/null @@ -1,17 +0,0 @@ -"""The Dispatcharr Sensor integration.""" - -from homeassistant.config_entries import ConfigEntry -from homeassistant.core import HomeAssistant - -from .const import PLATFORMS - -async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: - """Set up Dispatcharr Sensor from a config entry.""" - # This is the correct method name: async_forward_entry_setups - await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS) - return True - -async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: - """Unload a config entry.""" - # The unload method name is different, which is confusing. This one is correct. - return await hass.config_entries.async_unload_platforms(entry, PLATFORMS) \ No newline at end of file