Skip to content

Commit 85d8e38

Browse files
authored
Merge pull request #343 from fkhr79/main
remove cleartext logging of MAC address to protect privacy
2 parents 1f83dc4 + 3819a89 commit 85d8e38

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

custom_components/solvis_control/config_flow.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@ async def async_step_user(self, user_input: ConfigType | None = None) -> FlowRes
237237
if self.data[MAC] == "":
238238
_LOGGER.debug(f"calling get_mac for {user_input[CONF_HOST]}")
239239
mac_address = get_mac(user_input[CONF_HOST])
240-
_LOGGER.debug(f"get_mac returned: {mac_address}")
241240

242241
if not mac_address:
243242
errors["base"] = "mac_error"
@@ -250,12 +249,10 @@ async def async_step_user(self, user_input: ConfigType | None = None) -> FlowRes
250249
self.data[MAC] = format_mac(mac_address)
251250
await self.async_set_unique_id(format_mac(mac_address))
252251
self._abort_if_unique_id_configured()
253-
_LOGGER.info(f"Solvis Device MAC: {mac_address}")
254252
else:
255253
self.data[MAC] = format_mac(self.data[MAC])
256254
await self.async_set_unique_id(self.data[MAC])
257255
self._abort_if_unique_id_configured()
258-
_LOGGER.info(f"Solvis Device MAC: {self.data[MAC]}")
259256

260257
versionsc_raw, versionnbg_raw = await fetch_modbus_value([32770, 32771], 1, user_input[CONF_HOST], user_input[CONF_PORT])
261258

0 commit comments

Comments
 (0)