frappy_psi.ls372: add TemperatureSensor and TemperatureLoop

This commit is contained in:
l_samenv
2023-06-29 15:06:45 +02:00
committed by Markus Zolliker
parent ef5f4cd2f3
commit be7c9eec8c
2 changed files with 123 additions and 24 deletions

View File

@ -149,7 +149,7 @@ class ChannelSwitcher(Drivable):
def write_target(self, channel):
if channel not in self.channels:
raise ValueError(f'{channel!r} is no valid channel')
if channel == self.target and self.channels[channel].enabled:
if channel == self.value and self.channels[channel].enabled:
return channel
chan = self.channels[channel]
chan.enabled = True