This fixes issue #26, which was due to the comparison being changed from == to is. is compares if the object references are equal while == checks if the value is equal. This caused it to always jump to the else block, which always only returned the brightness.
This fixes issue #26, which was due to the comparison being changed from
==
tois
.is
compares if the object references are equal while==
checks if the value is equal. This caused it to always jump to the else block, which always only returned the brightness.