-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added setitem/getitem class attributes. - Replaced complex if/elif/else logic with element mappings via dicts, to be parsed along with parseable data (dict format) in a separate internal function - Added _process_element_mapping function to hand off parsing of incoming data to, based off of passed-along element_map, data in dict format, and True/False to ID whether we're working with an API response dict or not (for certain logic checks later on). This is a refactor based upon the refactor done for SmokeDetector-ng to reduce complexity.
- Loading branch information
Showing
1 changed file
with
64 additions
and
49 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