Skip to content

Commit

Permalink
Fixed in to take array
Browse files Browse the repository at this point in the history
  • Loading branch information
corporategoth committed Mar 2, 2022
1 parent b853438 commit 68064a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/powerpetdoor/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class SensorTypeClass(StrEnum):
}

SENSOR_SCHEMA = {
vol.Required(ATTR_SENSOR): vol.All(cv.string, vol.In(SensorTypeClass.INSIDE, SensorTypeClass.OUTSIDE))
vol.Required(ATTR_SENSOR): vol.All(cv.string, vol.In([ SensorTypeClass.INSIDE, SensorTypeClass.OUTSIDE ]))
}

def find_end(s) -> int | None:
Expand Down

0 comments on commit 68064a3

Please sign in to comment.