Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

Commit

Permalink
Add cards as default track option
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Feb 15, 2019
1 parent 95a4835 commit 5ce48c4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions custom_components/custom_updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from homeassistant.helpers.event import track_time_interval
from homeassistant.components.http import HomeAssistantView

VERSION = '4.0.1'
VERSION = '4.0.3'

_LOGGER = logging.getLogger(__name__)

Expand All @@ -34,9 +34,11 @@
ATTR_COMPONENT = 'component'
ATTR_ELEMENT = 'element'

DEFAULT_TRACK = ['components', 'cards']

CONFIG_SCHEMA = vol.Schema({
DOMAIN: vol.Schema({
vol.Optional(CONF_TRACK, default=['components']):
vol.Optional(CONF_TRACK, default=DEFAULT_TRACK):
vol.All(cv.ensure_list, [cv.string]),
vol.Optional(CONF_HIDE_SENSOR, default=False): cv.boolean,
vol.Optional(CONF_SHOW_INSTALLABLE, default=False): cv.boolean,
Expand Down Expand Up @@ -271,7 +273,6 @@ def install(self, element):
self.pyupdate.install(self.ha_conf_dir, element, self.custom_url)



class CustomCardsView(HomeAssistantView):
"""View to return a custom_card file."""

Expand Down

0 comments on commit 5ce48c4

Please sign in to comment.