diff --git a/CHANGELOG.md b/CHANGELOG.md index a3d2fd7..fa6848b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ ## Unreleased +### Fixed + +- Fixed missing `hub.system.info` method on some hubs. + ## 3.6.0 - 2025-03-11 ### Changed diff --git a/doc/main/hubs/cityhub.rst b/doc/main/hubs/cityhub.rst index e30bc98..7eee28d 100644 --- a/doc/main/hubs/cityhub.rst +++ b/doc/main/hubs/cityhub.rst @@ -56,6 +56,8 @@ City Hub .. automethod:: pybricks.hubs::CityHub.buttons.pressed + .. automethod:: pybricks.hubs::CityHub.system.info + .. blockimg:: pybricks_blockHubStopButton_CityHub .. blockimg:: pybricks_blockHubStopButton_CityHub_none diff --git a/doc/main/hubs/movehub.rst b/doc/main/hubs/movehub.rst index 7e5a5b8..edb207d 100644 --- a/doc/main/hubs/movehub.rst +++ b/doc/main/hubs/movehub.rst @@ -79,6 +79,8 @@ Move Hub .. automethod:: pybricks.hubs::MoveHub.buttons.pressed + .. automethod:: pybricks.hubs::MoveHub.system.info + .. blockimg:: pybricks_blockHubStopButton_MoveHub .. blockimg:: pybricks_blockHubStopButton_MoveHub_none diff --git a/doc/main/hubs/technichub.rst b/doc/main/hubs/technichub.rst index 3eda55e..a3ee7aa 100644 --- a/doc/main/hubs/technichub.rst +++ b/doc/main/hubs/technichub.rst @@ -114,6 +114,8 @@ Technic Hub .. automethod:: pybricks.hubs::TechnicHub.buttons.pressed + .. automethod:: pybricks.hubs::TechnicHub.system.info + .. blockimg:: pybricks_blockHubStopButton_TechnicHub .. blockimg:: pybricks_blockHubStopButton_TechnicHub_none diff --git a/src/pybricks/_common.py b/src/pybricks/_common.py index 4313299..bb98aa5 100644 --- a/src/pybricks/_common.py +++ b/src/pybricks/_common.py @@ -123,8 +123,8 @@ class System: automatically, like after a firmware update. It is ``2`` if the hub previously crashed due to a watchdog timeout, which indicates a firmware issue. - - ``"host_connected_ble"``: Whether the hub is connected to a computer, - tablet, or phone via Bluetooth. + - ``"host_connected_ble"``: ``True`` if the hub is connected to a + computer, tablet, or phone via Bluetooth, and ``False`` otherwise. - ``"program_start_type"``: It is ``1`` if the program started automatically when the hub was powered on. It is ``2`` if the program was started with the hub buttons. It is ``3`` if the program was @@ -136,7 +136,7 @@ class System: .. versionchanged:: 3.6 The name and reset reason where previously available as separate methods. Now they are included in the info dictionary. The methods - are still available for compatibility. + are still available for backwards compatibility. """