From: yomguy Date: Thu, 19 Jul 2012 18:16:53 +0000 (+0200) Subject: fix default power X-Git-Tag: 0.9~51 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=381980597702d510af2a11f5fe8e66d522726140;p=telecaster-client.git fix default power --- diff --git a/telecaster/tools/status.py b/telecaster/tools/status.py index ce229ef..89ea3b5 100644 --- a/telecaster/tools/status.py +++ b/telecaster/tools/status.py @@ -63,7 +63,7 @@ class Status(object): status = [ {'id': 'name', 'class': 'default', 'value': self.name, 'label': 'Name'}, {'id': 'ip', 'class': 'default', 'value': self.ip, 'label': 'IP address'}, - {'id': 'acpi_state','class': 'default', 'value': self.acpi_states[self.acpi.charging_state()], 'label': 'Power'}, + {'id': 'acpi_state','class': 'default', 'value': 'AC', 'label': 'Power'}, {'id': 'acpi_percent', 'class': 'default', 'value': str(self.acpi.percent()), 'label': 'Charge (%)'}, {'id': 'temperature', 'class': 'default', 'value': self.temperature, 'label': 'Temperature'}, {'id': 'jackd', 'class': 'default', 'value': self.jacking, 'label': 'Jack server'},