Add files via upload

Initial upload. Yes AI was used to help make this. If you want to hate me, call me a vibe coder and yell hateful comments at me, you can do so as I am coming out of my house. I live at 1600 Pennsylvania Ave in lovely.....
This commit is contained in:
Lyfesaver
2025-10-02 14:56:10 -05:00
committed by GitHub
parent 839135cc84
commit 3b9257385c
7 changed files with 367 additions and 0 deletions

17
__init__.py Normal file
View File

@@ -0,0 +1,17 @@
"""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)