(self.parent.id_,))
for timestamp, value in self.history.items():
db_conn.exec(f'INSERT INTO {self.table_name} VALUES (?, ?, ?)',
(self.parent.id_,))
for timestamp, value in self.history.items():
db_conn.exec(f'INSERT INTO {self.table_name} VALUES (?, ?, ?)',