Skip to content

Commit

Permalink
add config for showing result
Browse files Browse the repository at this point in the history
  • Loading branch information
rgerbranda committed Mar 8, 2024
1 parent a032643 commit 8f68281
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/rbfa/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import voluptuous as vol

import homeassistant.helpers.config_validation as cv
from homeassistant.const import CONF_RESOURCES
#from homeassistant.const import CONF_RESOURCES

import json
from pathlib import Path
Expand All @@ -19,6 +19,7 @@
SCHEDULE_UPDATE_INTERVAL = timedelta(minutes=5) # hours=12

CONF_TEAM = 'team'
CONF_RESULT = 'result'
CONF_UPDATE_INTERVAL = 'updateinterval'

TZ = 'Europe/Brussels'
Expand All @@ -28,6 +29,7 @@
PLATFORM_SCHEMA = vol.Schema(
{
vol.Required(CONF_TEAM, default=""): cv.string,
vol.Optional(CONF_RESULT, default='true'): cv.boolean,
vol.Optional(CONF_UPDATE_INTERVAL, default=0): cv.positive_int,
}, extra=vol.ALLOW_EXTRA # Allow extra required due when validating config as sensor (platform key is added to config)
)
Expand Down

0 comments on commit 8f68281

Please sign in to comment.