Skip to content

Commit efe1506

Browse files
authored
Update __init__.py
1 parent 35e3075 commit efe1506

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

custom_components/remote_homeassistant/__init__.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@
1919
import homeassistant.components.websocket_api.auth as api
2020
import homeassistant.helpers.config_validation as cv
2121
import voluptuous as vol
22-
try:
23-
# hass 2024.11
24-
from homeassistant.core_config import DATA_CUSTOMIZE
25-
except (ModuleNotFoundError, ImportError):
26-
from homeassistant.helpers.entity import DATA_CUSTOMIZE
22+
from homeassistant.helpers.entity import DATA_CUSTOMIZE
2723
from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry
2824
from homeassistant.const import (CONF_ABOVE, CONF_ACCESS_TOKEN, CONF_BELOW,
2925
CONF_DOMAINS, CONF_ENTITIES, CONF_ENTITY_ID,
@@ -312,7 +308,7 @@ def __init__(self, hass, config_entry):
312308
self._secure = config_entry.data.get(CONF_SECURE, False)
313309
self._verify_ssl = config_entry.data.get(CONF_VERIFY_SSL, False)
314310
self._access_token = config_entry.data.get(CONF_ACCESS_TOKEN)
315-
self._max_msg_size = config_entry.data.get(CONF_MAX_MSG_SIZE)
311+
self._max_msg_size = config_entry.data.get(CONF_MAX_MSG_SIZE, DEFAULT_MAX_MSG_SIZE)
316312

317313
# see homeassistant/components/influxdb/__init__.py
318314
# for include/exclude logic

0 commit comments

Comments
 (0)