Files
dispatcharr_sensor/__init__.py
Lyfesaver 3b9257385c 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.....
2025-10-02 14:56:10 -05:00

17 lines
754 B
Python

"""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)