Skip to content

Commit

Permalink
more linting
Browse files Browse the repository at this point in the history
  • Loading branch information
firstof9 committed Dec 6, 2024
1 parent 4a59072 commit af1ed34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/openei/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ async def get_sensors(self) -> dict:
await rate.update()
except openeihttp.RateLimit:
_LOGGER.error("API Rate limit exceded, retrying later.")
if self._data == {}:
if not self._data:
# 3 hour retry if we have no data
self._rate_limit_count = 3
else:
Expand Down
2 changes: 1 addition & 1 deletion custom_components/openei/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import voluptuous as vol
from homeassistant import config_entries
from homeassistant.components.sensor import DOMAIN as SENSORS_DOMAIN
from homeassistant.core import HomeAssistant, callback
from homeassistant.core import HomeAssistant

from .const import (
CONF_API_KEY,
Expand Down

0 comments on commit af1ed34

Please sign in to comment.