@@ -26,7 +26,7 @@ def __init__(
2626 if not hasattr (self , "attributes" ):
2727 self .attributes = {}
2828 self ._path : list [str ] = path or []
29- self .__sub_controller_tree : dict [str , SubController ] = {}
29+ self .__sub_controller_tree : dict [str , Controller ] = {}
3030
3131 self ._bind_attrs ()
3232
@@ -98,7 +98,7 @@ class method and a controller instance, so that it can be called from any
9898 elif isinstance (attr , UnboundPut | UnboundScan | UnboundCommand ):
9999 setattr (self , attr_name , attr .bind (self ))
100100
101- def register_sub_controller (self , name : str , sub_controller : SubController ):
101+ def register_sub_controller (self , name : str , sub_controller : Controller ):
102102 if name in self .__sub_controller_tree .keys ():
103103 raise ValueError (
104104 f"Controller { self } already has a SubController registered as { name } "
@@ -116,7 +116,7 @@ def register_sub_controller(self, name: str, sub_controller: SubController):
116116 )
117117 self .attributes [name ] = sub_controller .root_attribute
118118
119- def get_sub_controllers (self ) -> dict [str , SubController ]:
119+ def get_sub_controllers (self ) -> dict [str , Controller ]:
120120 return self .__sub_controller_tree
121121
122122
@@ -136,16 +136,3 @@ def __init__(self, description: str | None = None) -> None:
136136
137137 async def connect (self ) -> None :
138138 pass
139-
140-
141- class SubController (BaseController ):
142- """A subordinate to a ``Controller`` for managing a subset of a device.
143-
144- An instance of this class can be registered with a parent ``Controller`` to include
145- it as part of a larger device.
146- """
147-
148- root_attribute : Attribute | None = None
149-
150- def __init__ (self , description : str | None = None ) -> None :
151- super ().__init__ (description = description )
0 commit comments