Move unit system to util (#2763)

This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2016-08-08 20:42:25 -07:00
1 parent 640a8b5a7f
commit 0b7b0e54ba
18 files changed
+35 -56

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ from unittest import mock
from homeassistant import core as ha, loader
from homeassistant.bootstrap import _setup_component
from homeassistant.helpers.entity import ToggleEntity
from homeassistant.helpers.unit_system import METRIC_SYSTEM
from homeassistant.util.unit_system import METRIC_SYSTEM
import homeassistant.util.dt as date_util
from homeassistant.const import (
STATE_ON, STATE_OFF, DEVICE_DEFAULT_NAME, EVENT_TIME_CHANGED,
+1 -1
View File
@@ -1,7 +1,7 @@
"""The tests for the demo hvac."""
import unittest
from homeassistant.helpers.unit_system import (
from homeassistant.util.unit_system import (
METRIC_SYSTEM,
)
from homeassistant.components import hvac
+1 -1
View File
@@ -1,7 +1,7 @@
"""The tests for the demo thermostat."""
import unittest
from homeassistant.helpers.unit_system import (
from homeassistant.util.unit_system import (
METRIC_SYSTEM,
)
from homeassistant.components import thermostat
@@ -13,7 +13,7 @@ from homeassistant.const import (
STATE_OFF,
TEMP_CELSIUS,
)
from homeassistant.helpers.unit_system import METRIC_SYSTEM
from homeassistant.util.unit_system import METRIC_SYSTEM
from homeassistant.components import thermostat
from tests.common import get_test_home_assistant
+1 -1
View File
@@ -6,7 +6,7 @@ from unittest.mock import patch
from homeassistant.components import group
from homeassistant.exceptions import TemplateError
from homeassistant.helpers import template
from homeassistant.helpers.unit_system import UnitSystem
from homeassistant.util.unit_system import UnitSystem
from homeassistant.const import (
LENGTH_METERS,
TEMP_CELSIUS,
+1 -1
View File
@@ -15,7 +15,7 @@ import homeassistant.core as ha
from homeassistant.exceptions import (
HomeAssistantError, InvalidEntityFormatError)
import homeassistant.util.dt as dt_util
from homeassistant.helpers.unit_system import (METRIC_SYSTEM)
from homeassistant.util.unit_system import (METRIC_SYSTEM)
from homeassistant.const import (
__version__, EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP,
EVENT_STATE_CHANGED, ATTR_FRIENDLY_NAME, CONF_UNIT_SYSTEM)
@@ -1,7 +1,7 @@
"""Test the unit system helper."""
import unittest
from homeassistant.helpers.unit_system import (
from homeassistant.util.unit_system import (
UnitSystem,
METRIC_SYSTEM,
IMPERIAL_SYSTEM,