Skip to content

Commit

Permalink
feat: update to python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
gpulido committed Oct 24, 2024
1 parent 9b7bc01 commit b3bc12f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
4 changes: 2 additions & 2 deletions airzone/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import time
from threading import Lock

from pymodbus import FramerType # type: ignore
from pymodbus.client import ModbusTcpClient as ModbusClient # type: ignore
from pymodbus.transaction import ModbusRtuFramer # type: ignore

from airzone.utils import *

Expand All @@ -18,7 +18,7 @@ def modbus_factory(url, port, use_rtu_framer = False):
"""
if use_rtu_framer:
client = ModbusClient(url, port, ModbusRtuFramer)
client = ModbusClient(url, port, framer=FramerType.RTU)
else:
client = ModbusClient(url, port)
return client
Expand Down
2 changes: 1 addition & 1 deletion requirements.test.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pyModbus>=3.2.1
pyModbus>=3.7.0
pybase64
importlib-metadata
requests
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pyModbus>=3.2.1
pyModbus>=3.7.0
pybase64
importlib-metadata
requests
Expand Down
8 changes: 1 addition & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = python-airzone
version = 0.14.0
version = 0.16.0
description = 'Python library for interfacing with Airzone using the modbus protocol', # Required
long_description = file: README.rst
keywords = innobus, airzone, modbus, HVAC
Expand All @@ -17,12 +17,6 @@ classifiers =
Intended Audience :: Developers
Topic :: Software Development :: Build Tools
License :: OSI Approved :: MIT License
Programming Language :: Python :: 3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9

[options]
Expand Down

0 comments on commit b3bc12f

Please sign in to comment.