Fix mqtt schema import not available for mqtt_room (#102866)

This commit is contained in:
Jan Bouwhuis 2023-10-27 10:51:45 +02:00 committed by GitHub
parent 6b5f2a1349
commit 8eaf38cd44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -47,6 +47,7 @@ from .client import ( # noqa: F401
publish,
subscribe,
)
from .config import MQTT_BASE_SCHEMA, MQTT_RO_SCHEMA, MQTT_RW_SCHEMA # noqa: F401
from .config_integration import CONFIG_SCHEMA_BASE
from .const import ( # noqa: F401
ATTR_PAYLOAD,

View file

@ -47,7 +47,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,
vol.Optional(CONF_UNIQUE_ID): cv.string,
}
).extend(mqtt.config.MQTT_RO_SCHEMA.schema)
).extend(mqtt.MQTT_RO_SCHEMA.schema)
@lru_cache(maxsize=256)