Skip to content

Commit

Permalink
Fix lint issues & version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-codechimp committed Dec 26, 2023
1 parent cee4dd6 commit b7116db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion custom_components/battery_notes/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"integration_type": "device",
"iot_class": "calculated",
"issue_tracker": "https://github.com/andrew-codechimp/ha-battery-notes/issues",
"version": "1.2.0"
"version": "1.3.0"
}
10 changes: 5 additions & 5 deletions custom_components/battery_notes/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import logging
import attr
from collections import OrderedDict
from typing import MutableMapping, cast
from datetime import date, datetime
from dataclasses import dataclass
from collections.abc import MutableMapping
from typing import cast
from datetime import datetime

from homeassistant.core import (callback, HomeAssistant)
from homeassistant.loader import bind_hass
Expand Down Expand Up @@ -54,7 +54,7 @@ def __init__(self, hass: HomeAssistant) -> None:
async def async_load(self) -> None:
"""Load the registry of schedule entries."""
data = await self._store.async_load()
devices: "OrderedDict[str, DeviceEntry]" = OrderedDict()
devices: OrderedDict[str, DeviceEntry] = OrderedDict()

if data is not None:
if "devices" in data:
Expand Down Expand Up @@ -147,4 +147,4 @@ async def _load_reg() -> BatteryNotesStorage:

task = hass.data[DATA_REGISTRY] = hass.async_create_task(_load_reg())

return cast(BatteryNotesStorage, await task)
return cast(BatteryNotesStorage, await task)

0 comments on commit b7116db

Please sign in to comment.