Remove surepetcare usage of deprecated config options (#50113)

This commit is contained in:
Ben 2021-05-05 17:13:06 +02:00 committed by GitHub
parent 65cf138360
commit 40a18c10a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,7 +105,7 @@ async def async_setup(hass: HomeAssistant, config: dict) -> bool:
lock_state_service_schema = vol.Schema(
{
vol.Required(ATTR_FLAP_ID): vol.All(
cv.positive_int, vol.In(conf[CONF_FLAPS])
cv.positive_int, vol.In(spc.states.keys())
),
vol.Required(ATTR_LOCK_STATE): vol.All(
cv.string,