-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generic device widget, and StateDeviceWidget #120
Conversation
Codecov Report
@@ Coverage Diff @@
## main #120 +/- ##
==========================================
+ Coverage 74.92% 75.63% +0.70%
==========================================
Files 19 20 +1
Lines 1715 1769 +54
==========================================
+ Hits 1285 1338 +53
- Misses 430 431 +1
Continue to review full report at Codecov.
|
a start on creating more generic widgets that work for given device types.
This establishes new base class
DeviceWidget
that accepts the name of a device and is expected to make widget that controls the device. In most cases, it will be created with the classmethodDeviceWidget.for_device('deviceLabel')
which creates the appropriate subclass. Here,StateDevice
is implemented... butfor_device
will raise a NotImplementedError for all other device types (to be implemented later).