Use ATTR_NAME from const.py (#14450)

This commit is contained in:
Fabian Affolter authored and Pascal Vizeli committed 2018-05-14 13:05:52 +02:00
1 parent fb501282cc
commit 954e4796b8
26 files changed
+163 -194

No files matched your search

@@ -10,15 +10,14 @@ import os
import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import CONF_NAME, DEVICE_CLASS_BATTERY
from homeassistant.helpers.entity import Entity
from homeassistant.const import ATTR_NAME, CONF_NAME, DEVICE_CLASS_BATTERY
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity import Entity
REQUIREMENTS = ['batinfo==0.4.2']
_LOGGER = logging.getLogger(__name__)
ATTR_NAME = 'name'
ATTR_PATH = 'path'
ATTR_ALARM = 'alarm'
ATTR_CAPACITY = 'capacity'