Skip to content

Commit

Permalink
Fix the compatibility of HA core 2024.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
niceboy committed Nov 7, 2024
1 parent 2c44881 commit 37c33e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion custom_components/aqara_gateway/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
BinarySensorEntity,
BinarySensorDeviceClass,
)
from homeassistant.config import DATA_CUSTOMIZE
try:
from homeassistant.core_config import DATA_CUSTOMIZE
except:
from homeassistant.config import DATA_CUSTOMIZE
from homeassistant.helpers.event import async_call_later
from homeassistant.util.dt import now
from homeassistant.const import (
Expand Down

0 comments on commit 37c33e0

Please sign in to comment.