1
0
mirror of https://github.com/pommi/python-itho-wpu.git synced 2024-11-22 14:02: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:
Pim van den Berg 2021-02-12 17:25:41 +01:00
parent ff149eba6a
commit 1f8eca43f6

View File

@ -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: