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 GitHub
parent 0dd21f4c89
commit 12f9a11716
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1151,7 +1151,7 @@ ENTITY_CONFIG_VALIDATOR: dict[
} }
MQTT_DEVICE_PLATFORM_FIELDS = { 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( ATTR_SW_VERSION: PlatformField(
selector=TEXT_SELECTOR, required=False, validator=str selector=TEXT_SELECTOR, required=False, validator=str
), ),