Skip to content

Commit

Permalink
Fix 'f string' usage in debug log messages.
Browse files Browse the repository at this point in the history
Signed-off-by: Steffen Pankratz <[email protected]>
  • Loading branch information
kratz00 committed Sep 26, 2023
1 parent 987736e commit 9fc260c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ha_mqtt_discoverable/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ def _setup_client(self, on_connect: Optional[Callable] = None) -> None:
mqtt_settings = self._settings.mqtt
logger.debug(
f"Creating mqtt client ({mqtt_settings.client_name}) for "
"{mqtt_settings.host}:{mqtt_settings.port}"
f"{mqtt_settings.host}:{mqtt_settings.port}"
)
self.mqtt_client = mqtt.Client(mqtt_settings.client_name)
if mqtt_settings.tls_key:
Expand Down Expand Up @@ -790,7 +790,7 @@ def write_config(self):

logger.debug(
f"Writing '{config_message}' to topic {self.config_topic} on "
"{self._settings.mqtt.host}:{self._settings.mqtt.port}"
f"{self._settings.mqtt.host}:{self._settings.mqtt.port}"
)
self.wrote_configuration = True
self.config_message = config_message
Expand Down

0 comments on commit 9fc260c

Please sign in to comment.