Pyscript & Wemo?

I have a Wemo plug that works as expected when toggled using the Home Assistant GUI, however when I try to toggle it using Pyscript, the switch in the GUI toggles on and off, but not the device itself.

Has anyone seen this before, or found a solution?

state.set("switch.livingroom", "on")
state.set("switch.livingroom", "off")