Fix mqtt subentry device name is not required but should be (#144289)

Fix mqtt subentry device name is not required
This commit is contained in:
Jan Bouwhuis 2025-05-06 04:39:03 +02:00 committed by Paulus Schoutsen
parent 867df99353
commit 7f7a33b027

View File

@ -1151,7 +1151,7 @@ ENTITY_CONFIG_VALIDATOR: dict[
}
MQTT_DEVICE_PLATFORM_FIELDS = {
ATTR_NAME: PlatformField(selector=TEXT_SELECTOR, required=False, validator=str),
ATTR_NAME: PlatformField(selector=TEXT_SELECTOR, required=True, validator=str),
ATTR_SW_VERSION: PlatformField(
selector=TEXT_SELECTOR, required=False, validator=str
),