Use BaseServiceInfo inheritance in MqttServiceInfo (#60207)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
31b033ac25
commit
f6bbdec6cb
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ from typing import Any
|
||||||
|
|
||||||
from homeassistant.const import CONF_DEVICE, CONF_PLATFORM
|
from homeassistant.const import CONF_DEVICE, CONF_PLATFORM
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.data_entry_flow import RESULT_TYPE_ABORT
|
from homeassistant.data_entry_flow import RESULT_TYPE_ABORT, BaseServiceInfo
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.helpers.dispatcher import (
|
from homeassistant.helpers.dispatcher import (
|
||||||
async_dispatcher_connect,
|
async_dispatcher_connect,
|
||||||
|
@ -92,7 +92,7 @@ class MQTTConfig(dict):
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class MqttServiceInfo:
|
class MqttServiceInfo(BaseServiceInfo):
|
||||||
"""Prepared info from mqtt entries."""
|
"""Prepared info from mqtt entries."""
|
||||||
|
|
||||||
topic: str
|
topic: str
|
||||||
|
|
Loading…
Add table
Reference in a new issue