1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-09 23:02:23 +01:00

Add warning if esphome-core dev used without esphome dev

This commit is contained in:
Otto Winter
2019-02-28 10:11:05 +01:00
parent f6cc9f7caa
commit f3ee5b55e9
3 changed files with 26 additions and 4 deletions

View File

@@ -6,6 +6,8 @@ import re
import subprocess
import sys
from esphome import const
_LOGGER = logging.getLogger(__name__)
@@ -147,3 +149,7 @@ def run_external_process(*cmd, **kwargs):
if capture_stdout:
# pylint: disable=lost-exception
return sub_stdout.getvalue()
def is_dev_esphome_version():
return 'dev' in const.__version__