Skip to content

Commit

Permalink
lint for main
Browse files Browse the repository at this point in the history
  • Loading branch information
olry committed Jul 3, 2024
1 parent 55232c7 commit 74dc657
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def start(self):
def setup_sensor_hub(self):
"""Configure hub connection and subscribe to sensor data events."""
url = f"{self.host}/SensorHub?token={self.token}"
print(f"Connecting to: {url}") # Debug print
print(f"Connecting to: {url}")
self._hub_connection = (
HubConnectionBuilder()
.with_url(url)
Expand Down Expand Up @@ -94,7 +94,7 @@ def take_action(self, temperature):
def send_action_to_hvac(self, action):
"""Send action query to the HVAC service."""
response = requests.get(
f"{self.host}/api/hvac/{self.token}/{action}/{self.ticks}"
f"{self.host}/api/hvac/{self.token}/{action}/{self.ticks}", timeout=10
)
details = json.loads(response.text)
print(details, flush=True)
Expand Down

0 comments on commit 74dc657

Please sign in to comment.