Compare commits

...

2 Commits

Author SHA1 Message Date
schizza 49cd1acc40
Reorders sensor imports for consistency
Reorders the import statements for sensor-related constants in the `sensors_wslink.py` file.

This change improves code readability and maintainability by ensuring a consistent order of imports.
2025-04-24 20:44:30 +02:00
schizza 7bd28532ed
Adds sensor migration constants 2025-04-24 20:30:00 +02:00
2 changed files with 6 additions and 5 deletions

View File

@ -7,7 +7,6 @@ DOMAIN = "sws12500"
DEFAULT_URL = "/weatherstation/updateweatherstation.php" DEFAULT_URL = "/weatherstation/updateweatherstation.php"
WSLINK_URL = "/data/upload.php" WSLINK_URL = "/data/upload.php"
WINDY_URL = "https://stations.windy.com/pws/update/" WINDY_URL = "https://stations.windy.com/pws/update/"
DATABASE_PATH = "/config/home-assistant_v2.db"
ICON = "mdi:weather" ICON = "mdi:weather"
@ -16,6 +15,8 @@ API_ID = "API_ID"
SENSORS_TO_LOAD: Final = "sensors_to_load" SENSORS_TO_LOAD: Final = "sensors_to_load"
SENSOR_TO_MIGRATE: Final = "sensor_to_migrate" SENSOR_TO_MIGRATE: Final = "sensor_to_migrate"
MIG_FROM: Final = "migrate_from"
MIG_TO: Final = "migrate_to"
DEV_DBG: Final = "dev_debug_checkbox" DEV_DBG: Final = "dev_debug_checkbox"
WSLINK: Final = "wslink" WSLINK: Final = "wslink"

View File

@ -27,22 +27,22 @@ from .const import (
DAILY_RAIN, DAILY_RAIN,
DEW_POINT, DEW_POINT,
HEAT_INDEX, HEAT_INDEX,
HOURLY_RAIN,
INDOOR_HUMIDITY, INDOOR_HUMIDITY,
INDOOR_TEMP, INDOOR_TEMP,
MONTHLY_RAIN,
OUTSIDE_HUMIDITY, OUTSIDE_HUMIDITY,
OUTSIDE_TEMP, OUTSIDE_TEMP,
RAIN, RAIN,
SOLAR_RADIATION, SOLAR_RADIATION,
UV, UV,
WEEKLY_RAIN,
WIND_AZIMUT, WIND_AZIMUT,
WIND_DIR, WIND_DIR,
WIND_GUST, WIND_GUST,
WIND_SPEED, WIND_SPEED,
UnitOfDir,
MONTHLY_RAIN,
YEARLY_RAIN, YEARLY_RAIN,
HOURLY_RAIN, UnitOfDir,
WEEKLY_RAIN,
) )
from .sensors_common import WeatherSensorEntityDescription from .sensors_common import WeatherSensorEntityDescription
from .utils import wind_dir_to_text from .utils import wind_dir_to_text