Add lawn_mower platform to MQTT (#98831)
* Add MQTT lawn_mower platform * Use separate command topics and templates * Remove unrelated change
This commit is contained in:
parent
27f7399071
commit
49897341ba
6 changed files with 1158 additions and 0 deletions
|
@ -26,6 +26,7 @@ from . import (
|
|||
fan as fan_platform,
|
||||
humidifier as humidifier_platform,
|
||||
image as image_platform,
|
||||
lawn_mower as lawn_mower_platform,
|
||||
light as light_platform,
|
||||
lock as lock_platform,
|
||||
number as number_platform,
|
||||
|
@ -99,6 +100,10 @@ CONFIG_SCHEMA_BASE = vol.Schema(
|
|||
cv.ensure_list,
|
||||
[image_platform.PLATFORM_SCHEMA_MODERN], # type: ignore[has-type]
|
||||
),
|
||||
Platform.LAWN_MOWER.value: vol.All(
|
||||
cv.ensure_list,
|
||||
[lawn_mower_platform.PLATFORM_SCHEMA_MODERN], # type: ignore[has-type]
|
||||
),
|
||||
Platform.LOCK.value: vol.All(
|
||||
cv.ensure_list,
|
||||
[lock_platform.PLATFORM_SCHEMA_MODERN], # type: ignore[has-type]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue