fix HA 2025.1 compatibility; cleanup

This commit is contained in:
d.dmitriev
2025-02-16 14:17:34 +05:00
parent 40ae6041ae
commit 3856088e79
9 changed files with 47 additions and 42 deletions

View File

@@ -1,6 +1,7 @@
"""Constants for the mega integration."""
import re
from itertools import permutations
from homeassistant.const import Platform
DOMAIN = "mega"
CONF_MEGA_ID = "mega_id"
@@ -53,10 +54,10 @@ CONF_FILTER_HIGH = 'filter_high'
CONF_1WBUS = '1wbus'
CONF_ADDR = 'addr'
PLATFORMS = [
"light",
"switch",
"binary_sensor",
"sensor",
Platform.LIGHT,
Platform.SWITCH,
Platform.BINARY_SENSOR,
Platform.SENSOR,
]
EVENT_BINARY_SENSOR = f'{DOMAIN}.sensor'
EVENT_BINARY = f'{DOMAIN}.binary'