Skip to content

Commit a2de734

Browse files
WIP
1 parent 20cb0f8 commit a2de734

File tree

5 files changed

+1
-18
lines changed

5 files changed

+1
-18
lines changed

custom_components/battery_notes/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import logging
1010
import re
11-
from dataclasses import dataclass, field
11+
from dataclasses import dataclass
1212
from datetime import datetime
1313

1414
import voluptuous as vol

custom_components/battery_notes/binary_sensor.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
BinarySensorEntity,
1515
BinarySensorEntityDescription,
1616
)
17-
from homeassistant.config_entries import ConfigEntry
1817
from homeassistant.const import (
1918
CONF_DEVICE_ID,
2019
CONF_NAME,
@@ -71,14 +70,10 @@
7170
ATTR_BATTERY_QUANTITY,
7271
ATTR_BATTERY_TYPE,
7372
ATTR_BATTERY_TYPE_AND_QUANTITY,
74-
CONF_HIDE_BATTERY,
7573
CONF_SOURCE_ENTITY_ID,
76-
DATA,
7774
DOMAIN,
78-
DOMAIN_CONFIG,
7975
)
8076
from .coordinator import BatteryNotesCoordinator
81-
from .device import BatteryNotesDevice
8277
from .entity import (
8378
BatteryNotesEntityDescription,
8479
)

custom_components/battery_notes/button.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
ButtonEntity,
1313
ButtonEntityDescription,
1414
)
15-
from homeassistant.config_entries import ConfigEntry
1615
from homeassistant.const import (
1716
CONF_DEVICE_ID,
1817
CONF_NAME,
@@ -42,15 +41,11 @@
4241
ATTR_DEVICE_ID,
4342
ATTR_DEVICE_NAME,
4443
ATTR_SOURCE_ENTITY_ID,
45-
CONF_ENABLE_REPLACED,
4644
CONF_SOURCE_ENTITY_ID,
47-
DATA,
4845
DOMAIN,
49-
DOMAIN_CONFIG,
5046
EVENT_BATTERY_REPLACED,
5147
)
5248
from .coordinator import BatteryNotesCoordinator
53-
from .device import BatteryNotesDevice
5449
from .entity import (
5550
BatteryNotesEntityDescription,
5651
)

custom_components/battery_notes/diagnostics.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from typing import Any
66

7-
from homeassistant.config_entries import ConfigEntry
87
from homeassistant.const import CONF_DEVICE_ID
98
from homeassistant.core import HomeAssistant
109
from homeassistant.helpers import (

custom_components/battery_notes/sensor.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,12 @@
6969
ATTR_SOURCE_ENTITY_ID,
7070
CONF_BATTERY_QUANTITY,
7171
CONF_BATTERY_TYPE,
72-
CONF_ENABLE_REPLACED,
73-
CONF_HIDE_BATTERY,
74-
CONF_ROUND_BATTERY,
7572
CONF_SOURCE_ENTITY_ID,
76-
DATA,
7773
DOMAIN,
78-
DOMAIN_CONFIG,
7974
LAST_REPLACED,
8075
PLATFORMS,
8176
)
8277
from .coordinator import BatteryNotesCoordinator
83-
from .device import BatteryNotesDevice
8478
from .entity import (
8579
BatteryNotesEntityDescription,
8680
)

0 commit comments

Comments
 (0)