-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from s-kostyuk/refactor_things
This pull request contains a lot of changes (including BREAKING changes) for the current structure and naming of Things-related components: - all abstract implementations of Thing and derivative classes are now moved to `dpl.integrations` package; - all abstract implementations of Thing and derivative classes now have the `Abs` prefix in their names; - Thing class definition is remained unchanged (but there was an idea to rename it to the BaseThing); - Thing base class now handles the saving of `con_instance` and `con_params` constructor params by itself; - fixed a DTO construction for non-Actuator Things; - UnsupportedCommandError and UnacceptableCommandArgumentsError exceptions are now defined in `things.capabilities.i_actuator` module; - a lot of small PEP8 fixes (mostly for "line too long" errors).
- Loading branch information
Showing
14 changed files
with
200 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
from .thing import Thing | ||
from .actuator import Actuator | ||
from .switch import Switch | ||
from .slider import Slider | ||
from .player import Player | ||
from . import capabilities | ||
|
||
__all__ = ["Thing", "Actuator", "Switch", "Slider", "Player"] | ||
__all__ = ["Thing", "capabilities"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.