File tree Expand file tree Collapse file tree 5 files changed +1
-18
lines changed
custom_components/battery_notes Expand file tree Collapse file tree 5 files changed +1
-18
lines changed Original file line number Diff line number Diff line change 88
99import logging
1010import re
11- from dataclasses import dataclass , field
11+ from dataclasses import dataclass
1212from datetime import datetime
1313
1414import voluptuous as vol
Original file line number Diff line number Diff line change 1414 BinarySensorEntity ,
1515 BinarySensorEntityDescription ,
1616)
17- from homeassistant .config_entries import ConfigEntry
1817from homeassistant .const import (
1918 CONF_DEVICE_ID ,
2019 CONF_NAME ,
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)
8076from .coordinator import BatteryNotesCoordinator
81- from .device import BatteryNotesDevice
8277from .entity import (
8378 BatteryNotesEntityDescription ,
8479)
Original file line number Diff line number Diff line change 1212 ButtonEntity ,
1313 ButtonEntityDescription ,
1414)
15- from homeassistant .config_entries import ConfigEntry
1615from homeassistant .const import (
1716 CONF_DEVICE_ID ,
1817 CONF_NAME ,
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)
5248from .coordinator import BatteryNotesCoordinator
53- from .device import BatteryNotesDevice
5449from .entity import (
5550 BatteryNotesEntityDescription ,
5651)
Original file line number Diff line number Diff line change 44
55from typing import Any
66
7- from homeassistant .config_entries import ConfigEntry
87from homeassistant .const import CONF_DEVICE_ID
98from homeassistant .core import HomeAssistant
109from homeassistant .helpers import (
Original file line number Diff line number Diff line change 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)
8277from .coordinator import BatteryNotesCoordinator
83- from .device import BatteryNotesDevice
8478from .entity import (
8579 BatteryNotesEntityDescription ,
8680)
You can’t perform that action at this time.
0 commit comments