Skip to content

Commit

Permalink
Get sensor config from the right place. #185
Browse files Browse the repository at this point in the history
  • Loading branch information
flyte committed Mar 11, 2021
1 parent 99fc8c4 commit b50699c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mqtt_io/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ async def create_digital_output_queue(

def _init_sensor_inputs(self) -> None:
async def publish_sensor_callback(event: SensorReadEvent) -> None:
sens_conf = self.sensor_configs[event.sensor_name]
sens_conf = self.sensor_input_configs[event.sensor_name]
digits: int = sens_conf["digits"]
self.mqtt_task_queue.put_nowait(
PriorityCoro(
Expand Down

0 comments on commit b50699c

Please sign in to comment.