Home IO Control
ESPHome add-on for IO-Homecontrol devices
Toggle main menu visibility
Loading...
Searching...
No Matches
button.py
Go to the documentation of this file.
1
## @file
2
## @brief Retired `button:` platform: a `button:` entry with `platform: home_io_control` is a
3
## config error that names the replacement.
4
## @ingroup hioc_codegen
5
##
6
## The pairing button and its "Last Pairing Result" sensor come from the hub block's
7
## `discover_and_pair_button: true` (hub_entities.py, `create_discover_and_pair_button()`); every
8
## hub-level entity is created from a hub flag, never from a platform entry (ADR 0036). This module
9
## stays so the old entry fails with this message instead of ESPHome's generic "platform not found".
10
11
import
esphome.config_validation
as
cv
12
13
CONFIG_SCHEMA = cv.invalid(
14
"The 'home_io_control' button platform has been removed. Delete this 'button:' entry and set "
15
"'discover_and_pair_button: true' in the 'home_io_control:' block; the hub then creates the "
16
"'Discover & Pair' button and its 'Last Pairing Result' sensor itself."
17
)
components
home_io_control
button.py
Generated by
1.18.0