mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix MQTT linting
This commit is contained in:
parent
9ce2081110
commit
7ed5055fa2
@ -72,6 +72,7 @@ MQTT_PUBLISH_SCHEMA = vol.Schema({
|
||||
vol.Exclusive(ATTR_PAYLOAD_TEMPLATE, 'payload'): cv.string,
|
||||
vol.Required(ATTR_QOS, default=DEFAULT_QOS):
|
||||
vol.All(vol.Coerce(int), vol.In([0, 1, 2])),
|
||||
# pylint: disable=no-value-for-parameter
|
||||
vol.Required(ATTR_RETAIN, default=DEFAULT_RETAIN): vol.Boolean(),
|
||||
}, required=True)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user