1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Use strings instead of f-strings for constants (#40619)

This commit is contained in:
springstan
2020-11-09 10:09:53 +01:00
committed by GitHub
parent c8a940c59f
commit 30b94892c4
12 changed files with 91 additions and 75 deletions

View File

@@ -2,11 +2,7 @@
from datetime import timedelta
import json
from homeassistant.components.accuweather.const import (
ATTRIBUTION,
CONCENTRATION_PARTS_PER_CUBIC_METER,
DOMAIN,
)
from homeassistant.components.accuweather.const import ATTRIBUTION, DOMAIN
from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN
from homeassistant.const import (
ATTR_ATTRIBUTION,
@@ -14,6 +10,7 @@ from homeassistant.const import (
ATTR_ENTITY_ID,
ATTR_ICON,
ATTR_UNIT_OF_MEASUREMENT,
CONCENTRATION_PARTS_PER_CUBIC_METER,
DEVICE_CLASS_TEMPERATURE,
LENGTH_METERS,
LENGTH_MILLIMETERS,