Skip to content

Commit

Permalink
Consolidate signature of _update_internal
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Dec 5, 2024
1 parent c266fcb commit a4e2173
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/lvmecp/dome.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class DomeController(PLCModule[DomeStatus]):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)

async def _update_internal(self, use_cache: bool = True):
async def _update_internal(self, use_cache: bool = True, **kwargs):
dome_registers = await self.plc.modbus.read_group("dome", use_cache=use_cache)

dome_status = SimpleNamespace(**dome_registers)
Expand Down
2 changes: 1 addition & 1 deletion python/lvmecp/safety.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def __init__(self, *args, **kwargs):
self.o2_level_utilities: float = math.nan
self.o2_level_spectrograph: float = math.nan

async def _update_internal(self, use_cache: bool = True):
async def _update_internal(self, use_cache: bool = True, **kwargs):
assert self.flag is not None

safety_registers = await self.plc.modbus.read_group(
Expand Down

0 comments on commit a4e2173

Please sign in to comment.