Check if a script requirement is available before install (#20517)

* Check if a script requirement is available before install

* PackageLoadable

* hound

* req
This commit is contained in:
Johann Kellerman
2019-02-26 20:20:54 +02:00
committed by Paulus Schoutsen
parent f3c9327ccf
commit 90d3f517d8
2 changed files with 16 additions and 9 deletions

View File

@@ -5,7 +5,6 @@ import logging
import os
from collections import OrderedDict, namedtuple
from glob import glob
from platform import system
from typing import Dict, List, Sequence
from unittest.mock import patch
@@ -22,8 +21,6 @@ from homeassistant.util import yaml
from homeassistant.exceptions import HomeAssistantError
REQUIREMENTS = ('colorlog==4.0.2',)
if system() == 'Windows': # Ensure colorama installed for colorlog on Windows
REQUIREMENTS += ('colorama<=1',)
_LOGGER = logging.getLogger(__name__)
# pylint: disable=protected-access