mirror of
https://github.com/naruxde/revpimodio2.git
synced 2025-11-08 22:03:53 +01:00
Neue Base Klasse eingefügt von der Core / Connect erben
Sollten neue Base-Devices von Kunbus hinzugefügt werden, wird Base verwendet IntIOReplaceable Klasse erstellt für IOs von Gateways und virtuellen Devices Leere IntIOCounter Klasse für Counter IOs hinzugefügt
This commit is contained in:
@@ -162,14 +162,19 @@ class RevPiModIO(object):
|
||||
|
||||
if device["type"] == "BASE":
|
||||
pt = int(device["productType"])
|
||||
if pt == 105:
|
||||
if pt == 95:
|
||||
# RevPi Core
|
||||
dev_new = devicemodule.Core(
|
||||
self, device, simulator=self._simulator
|
||||
)
|
||||
elif pt == 105:
|
||||
# RevPi Connect
|
||||
dev_new = devicemodule.Connect(
|
||||
self, device, simulator=self._simulator
|
||||
)
|
||||
else:
|
||||
# RevPi Core immer als Fallback verwenden
|
||||
dev_new = devicemodule.Core(
|
||||
# Base immer als Fallback verwenden
|
||||
dev_new = devicemodule.Base(
|
||||
self, device, simulator=self._simulator
|
||||
)
|
||||
self.core = dev_new
|
||||
|
||||
Reference in New Issue
Block a user