Refactor Tradfri constants (#27334)

* Refactor constants

* Rename constant

* Rename constant

* Rename constant

* Review update

* Remove duplicate constant

* Reorder constants

* Dont refresh features

* Order package imports

* Fix bug

* Put back features in refresh

* Fix import order

* Refactor supported features

* Refactor supported features, take 2
This commit is contained in:
Patrik 2019-10-09 21:56:16 +02:00 committed by Paulus Schoutsen
parent a8db8d8c0b
commit 78e9bba279
8 changed files with 73 additions and 69 deletions

View file

@ -1,10 +1,9 @@
"""Support for IKEA Tradfri sensors."""
import logging
from homeassistant.components.tradfri.base_class import TradfriBaseDevice
from homeassistant.const import DEVICE_CLASS_BATTERY
from . import KEY_API, KEY_GATEWAY
from .const import CONF_GATEWAY_ID
from .base_class import TradfriBaseDevice
from .const import KEY_GATEWAY, KEY_API, CONF_GATEWAY_ID
_LOGGER = logging.getLogger(__name__)