Hide light additional controls if state=unavailable

This commit is contained in:
Yegor Vialov
2019-02-10 19:06:07 +02:00
parent 9c1970ee14
commit bdd1dc7e17
2 changed files with 4 additions and 4 deletions

View File

@ -65,7 +65,7 @@ class LightEntity extends Entity {
@override
Widget _buildAdditionalControlsForPage(BuildContext context) {
if (!isAdditionalControls) {
if (!isAdditionalControls || state == EntityState.unavailable) {
return Container(height: 0.0, width: 0.0);
} else {
return LightControlsWidget();