mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-16 05:36:29 +00:00
Fix lint p4
This commit is contained in:
parent
c916314704
commit
dd38c73b85
@ -97,7 +97,7 @@ class AddonsRepoCustom(AddonsRepo):
|
||||
config.add_addons_repository(url, slug)
|
||||
|
||||
path = os.path.join(config.path_addons_custom, slug)
|
||||
super()__init__(config, loop, path, url)
|
||||
super().__init__(config, loop, path, url)
|
||||
|
||||
def remove(self):
|
||||
"""Remove a custom addon."""
|
||||
|
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user