Skip to content

Commit ebaa576

Browse files
committed
Resync with Core version
1 parent e206006 commit ebaa576

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

custom_components/file_plusplus/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
4444
return True
4545
# The use of the legacy notify service was deprecated with HA Core 2024.6.0
4646
# and will be removed with HA Core 2024.12
47-
migrate_notify_issue(hass, DOMAIN, "File (Large)", "2024.12.0")
47+
migrate_notify_issue(hass, DOMAIN, "File++", "2024.12.0")
4848
# The YAML config was imported with HA Core 2024.6.0 and will be removed with
4949
# HA Core 2024.12
5050
ir.async_create_issue(
@@ -59,7 +59,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
5959
translation_key="deprecated_yaml",
6060
translation_placeholders={
6161
"domain": DOMAIN,
62-
"integration_title": "File (Large)",
62+
"integration_title": "File++",
6363
},
6464
)
6565

custom_components/file_plusplus/config_flow.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
CONF_PLATFORM,
2222
CONF_UNIT_OF_MEASUREMENT,
2323
CONF_VALUE_TEMPLATE,
24-
Platform
24+
Platform,
2525
)
2626

2727
from homeassistant.core import callback
@@ -35,8 +35,7 @@
3535
TextSelectorType,
3636
)
3737

38-
from .const import (CONF_TIMESTAMP, DEFAULT_NAME, DOMAIN,
39-
CONF_NOTIFY, CONF_SENSOR)
38+
from .const import CONF_TIMESTAMP, DEFAULT_NAME, DOMAIN
4039

4140
_LOGGER = logging.getLogger(__name__)
4241

@@ -116,9 +115,6 @@ async def _async_handle_step(
116115
if key not in (CONF_FILE_PATH, CONF_PLATFORM, CONF_NAME):
117116
data.pop(key)
118117
options[key] = value
119-
_LOGGER.debug("DATA: " + str(data))
120-
_LOGGER.debug("TITLE: " + str(title))
121-
_LOGGER.debug("OPTIONS: " + str(options))
122118
return self.async_create_entry(data=data, title=title, options=options)
123119

124120
return self.async_show_form(

custom_components/file_plusplus/const.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,3 @@
66

77
DEFAULT_NAME = "file_plusplus"
88
FILE_ICON = "mdi:file"
9-
10-
11-
CONF_NOTIFY = "Set up a notification service"
12-
CONF_SENSOR = "Set up a file based sensor"

0 commit comments

Comments
 (0)