frappy_psi.ls372: add TemperatureSensor and TemperatureLoop
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user