Deduplicate constants A-D (#105638)

This commit is contained in:
Joost Lekkerkerker 2023-12-13 14:21:44 +01:00 committed by GitHub
parent 02853a62f0
commit ac53b78a0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
61 changed files with 91 additions and 101 deletions

View file

@ -8,7 +8,13 @@ from typing import Any
from mysensors import BaseAsyncGateway, Sensor
from mysensors.sensor import ChildSensor
from homeassistant.const import ATTR_BATTERY_LEVEL, STATE_OFF, STATE_ON, Platform
from homeassistant.const import (
ATTR_BATTERY_LEVEL,
CONF_DEVICE,
STATE_OFF,
STATE_ON,
Platform,
)
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.debounce import Debouncer
from homeassistant.helpers.device_registry import DeviceInfo
@ -17,7 +23,6 @@ from homeassistant.helpers.entity import Entity
from .const import (
CHILD_CALLBACK,
CONF_DEVICE,
DOMAIN,
NODE_CALLBACK,
PLATFORM_TYPES,