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/entity_class/button_entity.class.dart

15 lines
352 B
Dart
Raw Normal View History

2018-10-27 14:27:41 +03:00
part of '../main.dart';
class ButtonEntity extends Entity {
ButtonEntity(Map rawData) : super(rawData);
@override
Widget _buildStatePart(BuildContext context) {
2019-01-25 23:48:31 +02:00
return FlatServiceButton(
entityId: entityId,
serviceDomain: domain,
serviceName: 'turn_on',
2019-03-13 18:06:43 +02:00
text: domain == "scene" ? "ACTIVATE" : "EXECUTE",
2019-01-25 23:48:31 +02:00
);
2018-10-27 14:27:41 +03:00
}
}