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

@ -18,14 +18,13 @@ from homeassistant.components.mqtt import (
ReceivePayloadType,
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import EVENT_HOMEASSISTANT_STOP
from homeassistant.const import CONF_DEVICE, EVENT_HOMEASSISTANT_STOP
from homeassistant.core import Event, HomeAssistant, callback
import homeassistant.helpers.config_validation as cv
from homeassistant.util.unit_system import METRIC_SYSTEM
from .const import (
CONF_BAUD_RATE,
CONF_DEVICE,
CONF_GATEWAY_TYPE,
CONF_GATEWAY_TYPE_MQTT,
CONF_GATEWAY_TYPE_SERIAL,