This is always returning efficiency as 0, not sure if (or how) I made the mistake.
condition = self.thermal_state()
efficiency = self.efficiency()
ideal = 0
print("Running Heating Test.")
print(f"Current Conditions Are: {condition}.")
for w in range(10):
self.set_power(w)
sleep(2)
print(f"{efficiency}% at {w} watts.")
if efficiency == 100:
ideal = w
print(f"Reached 100% efficiency for {condition} at {ideal}.")
Explicitly getting the component doesn't work either.
... I can just read it off the in-game display (that's what the sleep is for) but it's definitely bothering me.