Skip to content

Commit

Permalink
Update __init__.py (#323)
Browse files Browse the repository at this point in the history
Fixing DATA_CUSTOMIZE hass 2024.11 issue
  • Loading branch information
gsaurer authored Nov 7, 2024
1 parent 0553046 commit 576363b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion custom_components/remote_homeassistant/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@
import homeassistant.components.websocket_api.auth as api
import homeassistant.helpers.config_validation as cv
import voluptuous as vol
from homeassistant.config import DATA_CUSTOMIZE
try:
# hass 2024.11
from homeassistant.core_config import DATA_CUSTOMIZE
except (ModuleNotFoundError, ImportError):
from homeassistant.helpers.entity import DATA_CUSTOMIZE
from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry
from homeassistant.const import (CONF_ABOVE, CONF_ACCESS_TOKEN, CONF_BELOW,
CONF_DOMAINS, CONF_ENTITIES, CONF_ENTITY_ID,
Expand Down

0 comments on commit 576363b

Please sign in to comment.