Skip to content

Commit

Permalink
Remove redundant parenthesis
Browse files Browse the repository at this point in the history
Fix #93
  • Loading branch information
deiger authored Dec 16, 2021
1 parent 5218847 commit 1c1c3d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aircon/mqtt_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def mqtt_on_connect(self, client: mqtt.Client, userdata, flags, rc):

# Publish current status of all properties for available devices.
for device in self._devices:
if device.available():
if device.available:
for prop_name in fields(device.get_all_properties()):
self.mqtt_publish_update(device.mac_address,
prop_name,
Expand Down

0 comments on commit 1c1c3d3

Please sign in to comment.