mirror of
https://github.com/esphome/esphome.git
synced 2026-02-08 00:31:58 +00:00
[nrf52,zigbee] update warnings (#13761)
This commit is contained in:
@@ -84,8 +84,8 @@ def validate_number_of_ep(config: ConfigType) -> None:
|
||||
raise cv.Invalid("At least one zigbee device need to be included")
|
||||
count = len(CORE.data[KEY_ZIGBEE][KEY_EP_NUMBER])
|
||||
if count == 1:
|
||||
raise cv.Invalid(
|
||||
"Single endpoint is not supported https://github.com/Koenkk/zigbee2mqtt/issues/29888"
|
||||
_LOGGER.warning(
|
||||
"Single endpoint requires ZHA or at leatst Zigbee2MQTT 2.8.0. For older versions of Zigbee2MQTT use multiple endpoints"
|
||||
)
|
||||
if count > CONF_MAX_EP_NUMBER and not CORE.testing_mode:
|
||||
raise cv.Invalid(f"Maximum number of end points is {CONF_MAX_EP_NUMBER}")
|
||||
@@ -151,7 +151,7 @@ def consume_endpoint(config: ConfigType) -> ConfigType:
|
||||
return config
|
||||
if CONF_NAME in config and " " in config[CONF_NAME]:
|
||||
_LOGGER.warning(
|
||||
"Spaces in '%s' work with ZHA but not Zigbee2MQTT. For Zigbee2MQTT use '%s'",
|
||||
"Spaces in '%s' requires ZHA or at least Zigbee2MQTT 2.8.0. For older version of Zigbee2MQTT use '%s'",
|
||||
config[CONF_NAME],
|
||||
config[CONF_NAME].replace(" ", "_"),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user