Closed robweber closed 2 years ago
if someone is using mode=black
in their config, would this be a breaking change?
I agree that it'd be very nice to fix it.
@missionfloyd - thanks for the PR.
I added a quick check in the parent VirtualEPD
class to check if black
is given as a mode. If it is a warning will be shown and it will be set to bw
. This will give anyone a heads up and time to correct their config files.
I noticed when looking through things that some devices use
bw
as they default mode identifier while others useblack
. It's more of a semantic difference but sticking with a single identifier across all types would be more consistent. There are also areas in the parentvirtualepd.py
class where it checks specifically forbw
as a string before applying certain functions.Might be worth the effort of defining some constants for comparisons as well as consistency.