models/alarm: fix csv row
This commit is contained in:
parent
b40e9b6eed
commit
fcad77a839
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ class Alarm(db.Model):
|
|||
|
||||
def csv_row(self):
|
||||
return [
|
||||
self[x] for x in self.csv_header()
|
||||
getattr(self, x) for x in self.csv_header()
|
||||
]
|
||||
|
||||
def update_state(self, state: AlarmState, text: str):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue