Skip to content

Commit b23f000

Browse files
committed
Remove logging options
1 parent 630ef03 commit b23f000

File tree

3 files changed

+1
-43
lines changed

3 files changed

+1
-43
lines changed

custom_components/maint/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
CONFIG_SCHEMA = cv.config_entry_only_config_schema(DOMAIN)
2222
PLATFORMS: list[Platform] = [Platform.BINARY_SENSOR, Platform.SENSOR]
2323
_LOGGER = logging.getLogger(__name__)
24-
_PACKAGE_LOGGER = logging.getLogger(__package__)
2524
LOG_LEVEL_MAP = {
2625
"debug": logging.DEBUG,
2726
"info": logging.INFO,

custom_components/maint/config_flow.py

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,10 @@
66

77
import voluptuous as vol
88
from homeassistant import config_entries
9-
from homeassistant.core import callback
109

1110
from .const import (
12-
CONF_LOG_LEVEL,
13-
DEFAULT_LOG_LEVEL,
1411
DEFAULT_TITLE,
1512
DOMAIN,
16-
LOG_LEVEL_OPTIONS,
1713
)
1814

1915
if TYPE_CHECKING:
@@ -41,40 +37,3 @@ async def async_step_user(
4137
title=DEFAULT_TITLE,
4238
data={},
4339
)
44-
45-
@staticmethod
46-
@callback
47-
def async_get_options_flow(
48-
config_entry: ConfigEntry,
49-
) -> config_entries.OptionsFlow:
50-
"""Get the options flow for this handler."""
51-
return OptionsFlowHandler(config_entry)
52-
53-
54-
class OptionsFlowHandler(config_entries.OptionsFlow):
55-
"""Handle Maint options."""
56-
57-
def __init__(self, config_entry: ConfigEntry) -> None:
58-
"""Initialize options flow."""
59-
self.config_entry = config_entry
60-
61-
async def async_step_init(
62-
self, user_input: Mapping[str, Any] | None = None
63-
) -> config_entries.ConfigFlowResult:
64-
"""Manage the Maint options."""
65-
if user_input is not None:
66-
return self.async_create_entry(title="", data=user_input)
67-
68-
current_log_level = self.config_entry.options.get(
69-
CONF_LOG_LEVEL, DEFAULT_LOG_LEVEL
70-
)
71-
return self.async_show_form(
72-
step_id="init",
73-
data_schema=vol.Schema(
74-
{
75-
vol.Optional(CONF_LOG_LEVEL, default=current_log_level): vol.In(
76-
LOG_LEVEL_OPTIONS
77-
),
78-
}
79-
),
80-
)

custom_components/maint/sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class MaintTasksDueSensor(SensorEntity):
7474
"""Sensor counting due Maint binary sensors."""
7575

7676
_attr_has_entity_name = True
77-
_attr_name = "Tasks due"
77+
_attr_name = "Tasks Due"
7878

7979
def __init__(self, entry: MaintConfigEntry, tasks: list[MaintTask]) -> None:
8080
"""Initialize the sensor."""

0 commit comments

Comments
 (0)