mirror of
https://github.com/pommi/python-itho-wpu.git
synced 2024-11-21 13:52:15 +01:00
feat(itho-wpu): populate IthoWPU object with nodeid, datatype
These are required to look up information in the database related to your WPU version.
This commit is contained in:
parent
ff149eba6a
commit
1f8eca43f6
@ -173,6 +173,8 @@ class IthoWPU():
|
|||||||
self._q = queue.Queue()
|
self._q = queue.Queue()
|
||||||
self.no_cache = no_cache
|
self.no_cache = no_cache
|
||||||
self.cache = IthoWPUCache()
|
self.cache = IthoWPUCache()
|
||||||
|
self.nodeid = self.get('getnodeid')
|
||||||
|
self.datatype = self.get('getdatatype')
|
||||||
|
|
||||||
def get(self, action):
|
def get(self, action):
|
||||||
if not self.no_cache:
|
if not self.no_cache:
|
||||||
|
Loading…
Reference in New Issue
Block a user