Resolves #340 Connection refactoring

This commit is contained in:
estevez-dev
2019-03-26 00:18:30 +02:00
parent 4a75243994
commit 7c010359c3
7 changed files with 495 additions and 520 deletions

View File

@ -47,7 +47,7 @@ class _EntityHistoryWidgetState extends State<EntityHistoryWidget> {
}
if (_historyLastUpdated == null || now.difference(_historyLastUpdated).inSeconds > 30) {
_historyLastUpdated = now;
ha.getHistory(entityId).then((history){
ha.connection.getHistory(entityId).then((history){
if (!_disposed) {
setState(() {
_history = history.isNotEmpty ? history[0] : [];