From 65deb297dd0656a7b902ef7d51caa90a639e088e Mon Sep 17 00:00:00 2001 From: David Lechner Date: Wed, 18 Mar 2020 18:10:18 -0500 Subject: [PATCH] api: remove Port subclass from hubs This was removed in the pybricks-micropython implementation. --- pybricks/hubs.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pybricks/hubs.py b/pybricks/hubs.py index d5515d1..e404f3d 100644 --- a/pybricks/hubs.py +++ b/pybricks/hubs.py @@ -2,14 +2,12 @@ # Copyright (c) 2018-2020 The Pybricks Authors """LEGO® Programmable Hubs.""" -from enum import Enum from .builtins import Speaker, Battery, ColorLight, KeyPad from .media.ev3dev import Image class EV3Brick: """LEGO® MINDSTORMS® EV3 Brick.""" - Port = Enum('Port', ['A', 'B', 'C', 'D', 'S1', 'S2', 'S3', 'S4']) screen = Image('_screen_') speaker = Speaker() battery = Battery() @@ -19,13 +17,11 @@ class EV3Brick: class MoveHub: """LEGO® Powered Up Move Hub.""" - Port = Enum('Port', ['A', 'B', 'C', 'D']) battery = Battery() light = ColorLight() class CityHub: """LEGO® Powered Up City Hub.""" - Port = Enum('Port', ['A', 'B']) battery = Battery() light = ColorLight()