Skip to content

Commit

Permalink
fixed formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Viktor Karlquist <[email protected]>
  • Loading branch information
ha-enthus1ast committed Nov 22, 2023
1 parent 6a771d5 commit 7cba22a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ha_mqtt_discoverable/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,10 +737,7 @@ def _connect_client(self) -> None:
self.mqtt_client.loop_start()

def _state_helper(
self,
state: Optional[str],
topic: Optional[str] = None,
retain=True,
self, state: Optional[str], topic: Optional[str] = None, retain=True
) -> MQTTMessageInfo:
"""
Write a state to the given MQTT topic, returning the result of client.publish()
Expand All @@ -751,7 +748,6 @@ def _state_helper(
if not topic:
logger.debug(f"State topic unset, using default: {self.state_topic}")
topic = self.state_topic

logger.debug(f"Writing '{state}' to {topic}")

if self._settings.debug:
Expand Down

0 comments on commit 7cba22a

Please sign in to comment.