Skip to content

Commit bdc053c

Browse files
WIP
1 parent 81e8473 commit bdc053c

File tree

3 files changed

+0
-322
lines changed

3 files changed

+0
-322
lines changed

custom_components/battery_notes/device.py

Lines changed: 0 additions & 304 deletions
This file was deleted.

custom_components/battery_notes/library.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
from homeassistant.core import HomeAssistant
1111
from homeassistant.helpers.storage import STORAGE_DIR
1212

13-
from .const import (
14-
DATA_LIBRARY,
15-
DOMAIN,
16-
)
1713
from .coordinator import MY_KEY
1814

1915
_LOGGER = logging.getLogger(__name__)
@@ -101,19 +97,6 @@ def _load_library_json(library_file: str) -> dict[str, Any]:
10197
json_default_path,
10298
)
10399

104-
# @staticmethod
105-
# async def factory(hass: HomeAssistant) -> Library:
106-
# """Return the library or create."""
107-
108-
# domain_config = hass.data[MY_KEY]
109-
# if domain_config.library:
110-
# return domain_config.library
111-
112-
# library = Library(hass)
113-
# await library.load_libraries()
114-
# domain_config.library = library
115-
# return library
116-
117100
async def get_device_battery_details(
118101
self,
119102
device_to_find: ModelInfo,

custom_components/battery_notes/sensor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@
7070
CONF_BATTERY_TYPE,
7171
CONF_SOURCE_ENTITY_ID,
7272
DOMAIN,
73-
LAST_REPLACED,
7473
PLATFORMS,
7574
)
7675
from .coordinator import MY_KEY, BatteryNotesConfigEntry, BatteryNotesCoordinator

0 commit comments

Comments
 (0)