Skip to content

Commit

Permalink
Remove monitored conditions from syncthru
Browse files Browse the repository at this point in the history
  • Loading branch information
nielstron committed Jul 10, 2019
1 parent a30c370 commit 10cec7e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions homeassistant/components/syncthru/sensor.py
Expand Up @@ -40,10 +40,6 @@
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
vol.Required(CONF_RESOURCE): cv.url,
vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,
vol.Optional(
CONF_MONITORED_CONDITIONS,
default=DEFAULT_MONITORED_CONDITIONS
): vol.All(cv.ensure_list, [vol.In(DEFAULT_MONITORED_CONDITIONS)])
})


Expand All @@ -60,11 +56,11 @@ async def async_setup_platform(hass,
host = discovery_info.get(CONF_HOST)
name = discovery_info.get(CONF_NAME, DEFAULT_NAME)
# Main device, always added
monitored = DEFAULT_MONITORED_CONDITIONS
else:
host = config.get(CONF_RESOURCE)
name = config.get(CONF_NAME)
monitored = config.get(CONF_MONITORED_CONDITIONS)
# always pass through all of the obtained information
monitored = DEFAULT_MONITORED_CONDITIONS

session = aiohttp_client.async_get_clientsession(hass)

Expand Down

0 comments on commit 10cec7e

Please sign in to comment.