Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates Based on Integration Blueprint #171

Merged
merged 14 commits into from
Jan 11, 2024
Prev Previous commit
Next Next commit
Fix More Lint Errors & Map Tornado to Exceptional
  • Loading branch information
cloneofghosts committed Jan 10, 2024
commit 874bbe15d68934886830159c9afc4a4fe0dd305f
14 changes: 0 additions & 14 deletions custom_components/pirateweather/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,6 @@
SensorStateClass,
)
from homeassistant.components.weather import (
ATTR_CONDITION_CLOUDY,
ATTR_CONDITION_EXCEPTIONAL,
ATTR_CONDITION_FOG,
ATTR_CONDITION_HAIL,
ATTR_CONDITION_LIGHTNING,
ATTR_CONDITION_LIGHTNING_RAINY,
ATTR_CONDITION_PARTLYCLOUDY,
ATTR_CONDITION_POURING,
ATTR_CONDITION_RAINY,
ATTR_CONDITION_SNOWY,
ATTR_CONDITION_SNOWY_RAINY,
ATTR_CONDITION_SUNNY,
ATTR_CONDITION_WINDY,
ATTR_CONDITION_WINDY_VARIANT,
ATTR_FORECAST_CONDITION,
ATTR_FORECAST_PRECIPITATION,
ATTR_FORECAST_PRECIPITATION_PROBABILITY,
Expand Down
3 changes: 2 additions & 1 deletion custom_components/pirateweather/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
ATTR_CONDITION_SNOWY_RAINY,
ATTR_CONDITION_SUNNY,
ATTR_CONDITION_WINDY,
ATTR_CONDITION_EXCEPTIONAL,
PLATFORM_SCHEMA,
Forecast,
WeatherEntityFeature,
Expand Down Expand Up @@ -90,7 +91,7 @@
"partly-cloudy-night": ATTR_CONDITION_PARTLYCLOUDY,
"hail": ATTR_CONDITION_HAIL,
"thunderstorm": ATTR_CONDITION_LIGHTNING,
"tornado": None,
"tornado": ATTR_CONDITION_EXCEPTIONAL,
}

CONF_UNITS = "units"
Expand Down