Skip to content

Commit

Permalink
Use correct config validation for HA plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin Wichmann committed Oct 11, 2020
1 parent 7db12c8 commit a818e36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion home-assistant-plugin/custom_components/xknx/schema.py
Expand Up @@ -262,7 +262,7 @@ class SwitchSchema:
vol.Required(CONF_ADDRESS): cv.string,
vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,
vol.Optional(CONF_STATE_ADDRESS): cv.string,
vol.Optional(CONF_RESET_AFTER): cv.positive_float,
vol.Optional(CONF_RESET_AFTER): vol.All(vol.Coerce(int), vol.Range(min=0)),
}
)

Expand Down

0 comments on commit a818e36

Please sign in to comment.