wip
This commit is contained in:
parent
6fd4c9fbda
commit
270f0b01ea
@ -87,7 +87,10 @@ class ModbusComponent(Component):
|
||||
count = 2
|
||||
else:
|
||||
raise NotImplementedError(f"data_type {args[0]!r} is not supported")
|
||||
return self._decode(self._read(register, count=count), *args, **kwargs)
|
||||
read = self._read(register, count=count)
|
||||
if read is not None:
|
||||
read = self._decode(read, *args, **kwargs)
|
||||
return read
|
||||
|
||||
def write(self, register, data, *args, **kwargs):
|
||||
if type(register) is str:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user