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:
Jan Bouwhuis 2023-08-25 17:56:22 +02:00 committed by GitHub
parent 27f7399071
commit 49897341ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 1158 additions and 0 deletions

View file

@ -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]