Skip to content

Commit

Permalink
style fixes by ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
cloneofghosts authored and github-actions[bot] committed Aug 15, 2024
1 parent 3de1574 commit cb07ac5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom_components/pirateweather/weather_update_coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ async def _get_pw_weather(self):
"""Poll weather data from PW."""

if self.latitude == 0.0:
requestLatitude = self.hass.config.latitude
requestLatitude = self.hass.config.latitude
else:
requestLatitude = self.latitude
requestLatitude = self.latitude

if self.longitude == 0.0:
requestLongitude = self.hass.config.latitude
requestLongitude = self.hass.config.latitude
else:
requestLongitude = self.longitude
requestLongitude = self.longitude

forecastString = (
"https://api.pirateweather.net/forecast/"
Expand Down

0 comments on commit cb07ac5

Please sign in to comment.