Skip to content

Commit

Permalink
Fix list typing error
Browse files Browse the repository at this point in the history
  • Loading branch information
klejejs committed Feb 14, 2022
1 parent 9cd8202 commit badc151
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ThermiaOnlineAPI/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from typing import List

from ThermiaOnlineAPI.api.ThermiaAPI import ThermiaAPI
from ThermiaOnlineAPI.exceptions import AuthenticationException, NetworkException
from ThermiaOnlineAPI.model.HeatPump import ThermiaHeatPump
Expand All @@ -13,7 +15,7 @@ def __init__(self, username, password, api_type="classic"):

self.heat_pumps = self.fetch_heat_pumps()

def fetch_heat_pumps(self) -> list[ThermiaHeatPump]:
def fetch_heat_pumps(self) -> List[ThermiaHeatPump]:
devices = self.api_interface.get_devices()
heat_pumps = []

Expand Down

0 comments on commit badc151

Please sign in to comment.