Skip to content

Commit 9215889

Browse files
committed
resync further
1 parent a5cfcb7 commit 9215889

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

custom_components/file_plusplus/config_flow.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
CONF_VALUE_TEMPLATE,
2424
Platform,
2525
)
26-
2726
from homeassistant.core import callback
2827
from homeassistant.helpers.selector import (
2928
BooleanSelector,
@@ -115,9 +114,6 @@ async def _async_handle_step(
115114
if key not in (CONF_FILE_PATH, CONF_PLATFORM, CONF_NAME):
116115
data.pop(key)
117116
options[key] = value
118-
_LOGGER.debug("DATA: " + str(data))
119-
_LOGGER.debug("TITLE: " + str(title))
120-
_LOGGER.debug("OPTIONS: " + str(options))
121117
return self.async_create_entry(data=data, title=title, options=options)
122118

123119
return self.async_show_form(

custom_components/file_plusplus/notify.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,6 @@ def send_message(self, message: str = "", **kwargs: Any) -> None:
8181
filepath = self._file_path
8282
try:
8383
with open(filepath, "a", encoding="utf8") as file:
84-
# if os.stat(filepath).st_size == 0:
85-
# title = (
86-
# f"{kwargs.get(ATTR_TITLE, ATTR_TITLE_DEFAULT)} notifications (Log"
87-
# f" started: {dt_util.utcnow().isoformat()})\n{'-' * 80}\n"
88-
# )
89-
# file.write(title)
90-
9184
if self.add_timestamp:
9285
text = f"{dt_util.utcnow().isoformat()} {message}\n"
9386
else:
@@ -131,13 +124,6 @@ def send_message(self, message: str, title: str | None = None) -> None:
131124
filepath = self._file_path
132125
try:
133126
with open(filepath, "a", encoding="utf8") as file:
134-
# if os.stat(filepath).st_size == 0:
135-
# title = (
136-
# f"{title or ATTR_TITLE_DEFAULT} notifications (Log"
137-
# f" started: {dt_util.utcnow().isoformat()})\n{'-' * 80}\n"
138-
# )
139-
# file.write(title)
140-
141127
if self._add_timestamp:
142128
text = f"{dt_util.utcnow().isoformat()} {message}\n"
143129
else:

0 commit comments

Comments
 (0)