diff --git a/homeassistant/components/file/sensor.py b/homeassistant/components/file/sensor.py index e928541a724ad119e21f59180d69be9f4e219c1f..3368bd878d5b25cf8ec446930751e6f02fb136ea 100644 --- a/homeassistant/components/file/sensor.py +++ b/homeassistant/components/file/sensor.py @@ -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"