This repository has been archived on 2023-11-18. You can view files and clone it, but cannot push or open issues or pull requests.
ha_client/lib/entities/automation/automation_entity.class.dart

27 lines
633 B
Dart
Raw Normal View History

2019-08-24 21:22:32 +03:00
part of '../../main.dart';
2019-01-25 23:48:31 +02:00
class AutomationEntity extends Entity {
2019-03-19 23:07:40 +02:00
AutomationEntity(Map rawData, String webHost) : super(rawData, webHost);
2019-01-25 23:48:31 +02:00
@override
Widget _buildStatePart(BuildContext context) {
return SwitchStateWidget();
}
@override
Widget _buildAdditionalControlsForPage(BuildContext context) {
return Row(
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.max,
children: <Widget>[
FlatServiceButton(
serviceDomain: domain,
entityId: entityId,
2019-01-25 23:48:31 +02:00
text: "TRIGGER",
serviceName: "trigger",
)
],
);
}
}