1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 20:35:55 +00:00

Fix lint p4

This commit is contained in:
pvizeli
2017-04-27 17:48:25 +02:00
committed by Pascal Vizeli
parent c916314704
commit dd38c73b85
2 changed files with 7 additions and 4 deletions

View File

@@ -31,11 +31,14 @@ UPSTREAM_BETA = 'upstream_beta'
API_ENDPOINT = 'api_endpoint'
def hass_image():
"""Return HomeAssistant docker Image."""
return os.environ.get('HOMEASSISTANT_REPOSITORY')
# pylint: disable=no-value-for-parameter
SCHEMA_CONFIG = vol.Schema({
vol.Optional(HOMEASSISTANT_IMAGE,
default=os.environ.get('HOMEASSISTANT_REPOSITORY')):
vol.Coerce(str),
vol.Optional(HOMEASSISTANT_IMAGE, default=hass_image): vol.Coerce(str),
vol.Optional(UPSTREAM_BETA, default=False): vol.Boolean(),
vol.Optional(API_ENDPOINT): vol.Coerce(str),
vol.Optional(HOMEASSISTANT_LAST): vol.Coerce(str),