Skip to content

Commit

Permalink
Inline the initialization.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jul 8, 2024
1 parent 586860f commit a87cab4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions jaraco/abode/devices/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,7 @@ def new(cls, state, client):
except KeyError as exc:
raise jaraco.abode.Exception(ERROR.UNABLE_TO_MAP_DEVICE) from exc

init_cls = cls.resolve_class(type_tag)
spec_cls = init_cls.specialize(state)
return spec_cls(state, client)
return cls.resolve_class(type_tag).specialize(state)(state, client)

@property
def generic_type(self):
Expand Down

0 comments on commit a87cab4

Please sign in to comment.