-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement pydantic for lights (#436)
* Implement pydantic for lights * Save changes * Fix typing * Sort attributes * Apply suggestions from code review Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Update pytradfri/device/light_control.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Update pytradfri/device/light_control.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Type hint values * Use Mapping * Fix * Check for None * Fix tests * Apply suggestions from code review Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Remove deepcopy * Black * Black tests * Add Black target version settings * Save Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
- Loading branch information
1 parent
8507581
commit 1a6597f
Showing
8 changed files
with
189 additions
and
92 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
Oops, something went wrong.