api: remove Port subclass from hubs

This was removed in the pybricks-micropython implementation.
This commit is contained in:
David Lechner
2020-03-18 18:10:18 -05:00
parent bea9a6216e
commit 65deb297dd
-4
View File
@@ -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()