Remove surepetcare usage of deprecated config options (#50113)

This commit is contained in:
Ben 2021-05-05 17:13:06 +02:00 committed by Franck Nijhof
parent 1b9f7cdacf
commit d7d32cff95
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

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,