1 """Demo platform that has a couple fake lawn mowers."""
3 from __future__
import annotations
8 LawnMowerEntityFeature,
19 async_add_entities: AddEntitiesCallback,
20 discovery_info: DiscoveryInfoType |
None =
None,
22 """Set up the Demo lawn mowers."""
26 "kitchen_sink_mower_001",
28 LawnMowerActivity.DOCKED,
29 LawnMowerEntityFeature.START_MOWING,
32 "kitchen_sink_mower_002",
34 LawnMowerActivity.RETURNING,
35 LawnMowerEntityFeature.DOCK
36 | LawnMowerEntityFeature.PAUSE
37 | LawnMowerEntityFeature.START_MOWING,
40 "kitchen_sink_mower_003",
42 LawnMowerActivity.MOWING,
43 LawnMowerEntityFeature.DOCK | LawnMowerEntityFeature.START_MOWING,
46 "kitchen_sink_mower_004",
48 LawnMowerActivity.DOCKED,
49 LawnMowerEntityFeature.PAUSE | LawnMowerEntityFeature.START_MOWING,
52 "kitchen_sink_mower_005",
54 LawnMowerActivity.DOCKED,
55 LawnMowerEntityFeature.DOCK
56 | LawnMowerEntityFeature.PAUSE
57 | LawnMowerEntityFeature.START_MOWING,
60 "kitchen_sink_mower_006",
62 LawnMowerActivity.PAUSED,
63 LawnMowerEntityFeature.DOCK
64 | LawnMowerEntityFeature.PAUSE
65 | LawnMowerEntityFeature.START_MOWING,
73 config_entry: ConfigEntry,
74 async_add_entities: AddEntitiesCallback,
76 """Set up the Everything but the Kitchen Sink config entry."""
81 """Representation of a Demo lawn mower."""
87 activity: LawnMowerActivity,
90 """Initialize the lawn mower."""
None async_start_mowing(self)
None __init__(self, str unique_id, str name, LawnMowerActivity activity, LawnMowerEntityFeature features=LawnMowerEntityFeature(0))
None async_write_ha_state(self)
None async_setup_entry(HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
None async_setup_platform(HomeAssistant hass, ConfigType config, AddEntitiesCallback async_add_entities, DiscoveryInfoType|None discovery_info=None)