parent
360addfb0b
commit
3740424725
1 changed files with 2 additions and 1 deletions
|
@ -24,6 +24,7 @@ from homeassistant.helpers import event
|
||||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
import homeassistant.util.dt as dt_util
|
import homeassistant.util.dt as dt_util
|
||||||
|
from homeassistant.util.package import is_virtual_env
|
||||||
|
|
||||||
REQUIREMENTS = ['distro==1.3.0']
|
REQUIREMENTS = ['distro==1.3.0']
|
||||||
|
|
||||||
|
@ -133,7 +134,7 @@ async def get_system_info(hass, include_components):
|
||||||
'python_version': platform.python_version(),
|
'python_version': platform.python_version(),
|
||||||
'timezone': dt_util.DEFAULT_TIME_ZONE.zone,
|
'timezone': dt_util.DEFAULT_TIME_ZONE.zone,
|
||||||
'version': current_version,
|
'version': current_version,
|
||||||
'virtualenv': os.environ.get('VIRTUAL_ENV') is not None,
|
'virtualenv': is_virtual_env(),
|
||||||
'hassio': hass.components.hassio.is_hassio(),
|
'hassio': hass.components.hassio.is_hassio(),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue