Skip to content

Commit d0aa049

Browse files
committed
chore: remove registry
1 parent 0f9d163 commit d0aa049

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

roborock/containers.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from datetime import timezone
99
from enum import Enum
1010
from functools import cached_property
11-
from typing import Any, ClassVar, NamedTuple, get_args, get_origin
11+
from typing import Any, NamedTuple, get_args, get_origin
1212

1313
from .code_mappings import (
1414
SHORT_MODEL_TO_ENUM,
@@ -110,11 +110,6 @@ def _decamelize(s: str):
110110
@dataclass
111111
class RoborockBase:
112112
_ignore_keys = [] # type: ignore
113-
_registry: ClassVar[dict[str, type["RoborockBase"]]] = {}
114-
115-
def __init_subclass__(cls, **kwargs: Any) -> None:
116-
super().__init_subclass__(**kwargs)
117-
RoborockBase._registry[cls.__name__] = cls
118113

119114
@staticmethod
120115
def _convert_to_class_obj(class_type: type, value):

0 commit comments

Comments
 (0)