Skip to content

Commit 098c8e6

Browse files
committed
editor/pybricksMicroPython: add Side to hub template
This is included in pybricks.parameters on all hubs.
1 parent 43a6f63 commit 098c8e6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/editor/pybricksMicroPython.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ export const language = <monaco.languages.IMonarchLanguage>{
309309
function createTemplate(hubClassName: string, deviceClassNames: string[]): string {
310310
return `from pybricks.hubs import ${hubClassName}
311311
from pybricks.pupdevices import ${deviceClassNames.join(', ')}
312-
from pybricks.parameters import Button, Color, Direction, Port, Stop
312+
from pybricks.parameters import Button, Color, Direction, Port, Side, Stop
313313
from pybricks.robotics import DriveBase
314314
from pybricks.tools import wait, StopWatch
315315

src/explorer/sagas.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ describe('handleExplorerCreateNewFile', () => {
294294
{
295295
"contents": "from pybricks.hubs import TechnicHub
296296
from pybricks.pupdevices import Motor
297-
from pybricks.parameters import Button, Color, Direction, Port, Stop
297+
from pybricks.parameters import Button, Color, Direction, Port, Side, Stop
298298
from pybricks.robotics import DriveBase
299299
from pybricks.tools import wait, StopWatch
300300

0 commit comments

Comments
 (0)