From 24d35993e9616e29a18088fcc523499af306e6df Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Fri, 9 Oct 2020 13:21:23 +0200 Subject: [PATCH] api: rename CPlusHub to TechnicHub This reflects the newly adopted naming convention. See https://github.com/pybricks/support/issues/119 --- doc/api/hubs.rst | 2 +- doc/api/hubs_cplushub.inc | 10 +++++----- doc/api/index.rst | 2 +- pybricks/hubs.py | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/doc/api/hubs.rst b/doc/api/hubs.rst index 8f6faaf..c455988 100644 --- a/doc/api/hubs.rst +++ b/doc/api/hubs.rst @@ -11,7 +11,7 @@ City Hub (City/System) .. include:: hubs_cityhub.inc -Control+ Hub (Technic) +Technic Hub (Technic) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. figure:: ../api/images/cplushub.png diff --git a/doc/api/hubs_cplushub.inc b/doc/api/hubs_cplushub.inc index a1e833a..20844e1 100644 --- a/doc/api/hubs_cplushub.inc +++ b/doc/api/hubs_cplushub.inc @@ -1,15 +1,15 @@ -.. autoclass:: pybricks.hubs.CPlusHub +.. autoclass:: pybricks.hubs.TechnicHub :no-members: .. rubric:: Using the hub status light - .. automethod:: pybricks.hubs::CPlusHub.light.on + .. automethod:: pybricks.hubs::TechnicHub.light.on - .. automethod:: pybricks.hubs::CPlusHub.light.off + .. automethod:: pybricks.hubs::TechnicHub.light.off .. rubric:: Using the battery - .. automethod:: pybricks.hubs::CPlusHub.battery.voltage + .. automethod:: pybricks.hubs::TechnicHub.battery.voltage - .. automethod:: pybricks.hubs::CPlusHub.battery.current + .. automethod:: pybricks.hubs::TechnicHub.battery.current diff --git a/doc/api/index.rst b/doc/api/index.rst index f52a01f..d87edbf 100644 --- a/doc/api/index.rst +++ b/doc/api/index.rst @@ -16,7 +16,7 @@ below. * - **EV3 Brick** - **Move Hub** - **City Hub** - - **Control+ Hub** + - **Technic Hub** * - .. image:: images/ev3brick.png :target: start_ev3.html diff --git a/pybricks/hubs.py b/pybricks/hubs.py index 2476b91..07d7cc8 100644 --- a/pybricks/hubs.py +++ b/pybricks/hubs.py @@ -28,7 +28,7 @@ class CityHub: light = _ColorLight() -class CPlusHub: - """LEGO® Technic Control+ Hub.""" +class TechnicHub: + """LEGO® Technic Hub.""" battery = _Battery() light = _ColorLight()