Skip to content

Commit

Permalink
Ongoing work
Browse files Browse the repository at this point in the history
  • Loading branch information
dstrigl committed Jun 27, 2023
1 parent fca82da commit 020eb83
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion htheatpump/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

from typing_extensions import Final
from typing import Final

__version__: Final = "1.3.2"
3 changes: 1 addition & 2 deletions htheatpump/htheatpump.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@
import re
import time
from types import TracebackType
from typing import Dict, List, Optional, Set, Tuple, Type, Union, cast
from typing import Final, Dict, List, Optional, Set, Tuple, Type, Union, cast

import serial
from typing_extensions import Final

from .htparams import HtParams, HtParamValueType
from .httimeprog import TimeProgEntry, TimeProgram
Expand Down
4 changes: 1 addition & 3 deletions htheatpump/htparams.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@
import csv
import enum
from os import path
from typing import Any, Dict, ItemsView, KeysView, Optional, Tuple, Union, ValuesView

# TODO from typing_extensions import get_args
from typing import Any, Dict, ItemsView, KeysView, Optional, Tuple, Union, ValuesView, get_args

from .utils import Singleton

Expand Down
4 changes: 1 addition & 3 deletions htheatpump/httimeprog.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
import copy
import re
from itertools import chain
from typing import Any, Dict, List, Optional, Tuple, Type, TypeVar

from typing_extensions import Final
from typing import Final, Any, Dict, List, Optional, Tuple, Type, TypeVar

# ------------------------------------------------------------------------------------------------------------------- #
# TimeProgPeriod class
Expand Down
2 changes: 1 addition & 1 deletion htheatpump/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
""" Protocol constants and functions for the Heliotherm heat pump communication. """


from typing_extensions import Final
from typing import Final

# ------------------------------------------------------------------------------------------------------------------- #
# Protocol constants
Expand Down
2 changes: 1 addition & 1 deletion htheatpump/scripts/hthttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
from typing import Any, cast
from urllib import parse as urlparse

from typing_extensions import Final
from typing import Final

from htheatpump.htheatpump import HtHeatpump
from htheatpump.htparams import HtDataTypes, HtParams
Expand Down

0 comments on commit 020eb83

Please sign in to comment.