Set Light britness to 0 if light is turned off
This commit is contained in:
@ -783,7 +783,7 @@ class _LightControlsWidgetState extends State<LightControlsWidget> {
|
|||||||
String _tmpEffect;
|
String _tmpEffect;
|
||||||
|
|
||||||
void _resetState(LightEntity entity) {
|
void _resetState(LightEntity entity) {
|
||||||
_tmpBrightness = entity.brightness;
|
_tmpBrightness = entity.brightness ?? 0;
|
||||||
_tmpColorTemp = entity.colorTemp;
|
_tmpColorTemp = entity.colorTemp;
|
||||||
_tmpColor = entity.color;
|
_tmpColor = entity.color;
|
||||||
_tmpEffect = null;
|
_tmpEffect = null;
|
||||||
|
Reference in New Issue
Block a user