mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-12 17:44:28 +05:00
fix HA 2025.1 compatibility; cleanup
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user