Deprecate SolarEdge YAML configuration (#48533)

This commit is contained in:
Franck Nijhof 2021-03-31 10:31:12 +02:00 committed by GitHub
parent c80f34a754
commit d4d8f74858
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 11 deletions

View File

@ -433,6 +433,7 @@ homeassistant/components/smarttub/* @mdz
homeassistant/components/smarty/* @z0mbieprocess homeassistant/components/smarty/* @z0mbieprocess
homeassistant/components/sms/* @ocalvo homeassistant/components/sms/* @ocalvo
homeassistant/components/smtp/* @fabaff homeassistant/components/smtp/* @fabaff
homeassistant/components/solaredge/* @frenck
homeassistant/components/solaredge_local/* @drobtravels @scheric homeassistant/components/solaredge_local/* @drobtravels @scheric
homeassistant/components/solarlog/* @Ernst79 homeassistant/components/solarlog/* @Ernst79
homeassistant/components/solax/* @squishykid homeassistant/components/solax/* @squishykid

View File

@ -9,6 +9,8 @@ from homeassistant.helpers.typing import HomeAssistantType
from .const import CONF_SITE_ID, DEFAULT_NAME, DOMAIN from .const import CONF_SITE_ID, DEFAULT_NAME, DOMAIN
CONFIG_SCHEMA = vol.Schema( CONFIG_SCHEMA = vol.Schema(
vol.All(
cv.deprecated(DOMAIN),
{ {
DOMAIN: vol.Schema( DOMAIN: vol.Schema(
{ {
@ -18,6 +20,7 @@ CONFIG_SCHEMA = vol.Schema(
} }
) )
}, },
),
extra=vol.ALLOW_EXTRA, extra=vol.ALLOW_EXTRA,
) )

View File

@ -4,6 +4,6 @@
"documentation": "https://www.home-assistant.io/integrations/solaredge", "documentation": "https://www.home-assistant.io/integrations/solaredge",
"requirements": ["solaredge==0.0.2", "stringcase==1.2.0"], "requirements": ["solaredge==0.0.2", "stringcase==1.2.0"],
"config_flow": true, "config_flow": true,
"codeowners": [], "codeowners": ["@frenck"],
"dhcp": [{"hostname":"target","macaddress":"002702*"}] "dhcp": [{ "hostname": "target", "macaddress": "002702*" }]
} }