Move onewire constants to separate file (#40550)

* Move constants to separate file

* Ignore coverage of const.py
This commit is contained in:
epenet 2020-09-28 02:02:20 +02:00 committed by GitHub
parent f71816d328
commit f886ea9e3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 5 deletions

View file

@ -20,13 +20,15 @@ from homeassistant.const import (
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity import Entity
from .const import (
CONF_MOUNT_DIR,
CONF_NAMES,
DEFAULT_OWSERVER_PORT,
DEFAULT_SYSBUS_MOUNT_DIR,
)
_LOGGER = logging.getLogger(__name__)
CONF_MOUNT_DIR = "mount_dir"
CONF_NAMES = "names"
DEFAULT_OWSERVER_PORT = 4304
DEFAULT_SYSBUS_MOUNT_DIR = "/sys/bus/w1/devices/"
DEVICE_SENSORS = {
# Family : { SensorType: owfs path }
"10": {"temperature": "temperature"},