Skip to content

Commit 4ee7382

Browse files
committed
core/vports: Fix virtual attribute
1 parent cf883f6 commit 4ee7382

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎qtoggleserver/core/vports.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
class VirtualPort(core_ports.Port):
1414
WRITABLE = True
15-
VIRTUAL = True
1615

1716
def __init__(
1817
self,
@@ -42,6 +41,9 @@ def map_id(self, new_id: str) -> None:
4241
def is_integer(self) -> bool:
4342
return bool(self._integer)
4443

44+
def attr_is_virtual(self) -> bool:
45+
return True
46+
4547
async def read_value(self) -> NullablePortValue:
4648
return self._virtual_value
4749

0 commit comments

Comments
 (0)