Erste Anpassungen für RevPiConnect

This commit is contained in:
2018-07-27 11:30:33 +02:00
parent 03c7b7d7ea
commit 4b8fd5a2b6
5 changed files with 8 additions and 6 deletions

View File

@@ -25,7 +25,7 @@ __all__ = [
__author__ = "Sven Sager <akira@revpimodio.org>"
__name__ = "revpimodio2"
__package__ = "revpimodio2"
__version__ = "2.1.6"
__version__ = "2.2.0"
# Global package values
OFF = 0

View File

@@ -236,7 +236,7 @@ class Device(object):
for key in sorted(dict_io, key=lambda x: int(x)):
# Neuen IO anlegen
if bool(dict_io[key][7]) or self._producttype == 95:
if bool(dict_io[key][7]) or isinstance(self, Core):
# Bei Bitwerten oder Core RevPiIOBase verwenden
io_new = IOBase(
self, dict_io[key], iotype, "little", False

View File

@@ -37,7 +37,9 @@ class NetFH(Thread):
"""
def __init__(self, address, timeout=500):
"""Init NetFH-class."""
"""Init NetFH-class.
@param address IP Adresse des RevPi
@param timeout Timeout in Millisekunden der Verbindung"""
super().__init__()
self.daemon = True