Fixx service calls

This commit is contained in:
Yegor Vialov
2019-11-08 19:37:41 +00:00
parent 139533d2ca
commit 551a8dfa31
21 changed files with 227 additions and 136 deletions

View File

@ -39,7 +39,10 @@ class _SwitchStateWidgetState extends State<SwitchStateWidget> {
domain = entity.domain;
}
ConnectionManager().callService(
domain, (newValue as bool) ? "turn_on" : "turn_off", entity.entityId, null);
domain: domain,
service: (newValue as bool) ? "turn_on" : "turn_off",
entityId: entity.entityId
);
}
@override