doc/common/requirements: A hub supports itself.

This way we can do the following, which is useful if it cannot be expressed in terms of other requirements.

.. pybricks-requirements:: movehub

A good example is on the specific hub page itself. The Move Hub requires the Move Hub.
This commit is contained in:
Laurens Valk
2021-08-05 12:32:03 +02:00
parent 979da8b170
commit e8d7281626
+5 -5
View File
@@ -21,11 +21,11 @@ FEATURES_LARGE = FEATURES_MEDIUM | set()
# Features per hub.
HUB_FEATURES = {
'movehub': FEATURES_SMALL,
'cityhub': FEATURES_MEDIUM,
'technichub': FEATURES_MEDIUM,
'primehub': FEATURES_LARGE,
'inventorhub': FEATURES_LARGE,
'movehub': {'movehub'} | FEATURES_SMALL,
'cityhub': {'cityhub'} | FEATURES_MEDIUM,
'technichub': {'technichub'} | FEATURES_MEDIUM,
'primehub': {'primehub', 'inventorhub'} | FEATURES_LARGE,
'inventorhub': {'primehub', 'inventorhub'} | FEATURES_LARGE,
}