Use core constants for file integration (#46171)
This commit is contained in:
parent
5755598c95
commit
04c1578f15
1 changed files with 6 additions and 3 deletions
|
@ -5,14 +5,17 @@ import os
|
|||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
||||
from homeassistant.const import CONF_NAME, CONF_UNIT_OF_MEASUREMENT, CONF_VALUE_TEMPLATE
|
||||
from homeassistant.const import (
|
||||
CONF_FILE_PATH,
|
||||
CONF_NAME,
|
||||
CONF_UNIT_OF_MEASUREMENT,
|
||||
CONF_VALUE_TEMPLATE,
|
||||
)
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.entity import Entity
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
CONF_FILE_PATH = "file_path"
|
||||
|
||||
DEFAULT_NAME = "File"
|
||||
|
||||
ICON = "mdi:file"
|
||||
|
|
Loading…
Add table
Reference in a new issue