Skip to content

Commit

Permalink
fix: IEC API change - Meter Reading optional fields (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuyKh authored Nov 7, 2024
1 parent b014b1e commit 96cac01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions iec_api/models/meter_reading.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
class MeterReading(DataClassDictMixin):
"""Meter Reading dataclass."""

reading: int = field(metadata=field_options(alias="reading"))
reading_date: datetime = field(metadata=field_options(alias="readingDate"))
serial_number: str = field(metadata=field_options(alias="serialNumber"))
reading: Optional[int] = field(default=None, metadata=field_options(alias="reading"))
reading_date: Optional[datetime] = field(default=None, metadata=field_options(alias="readingDate"))
serial_number: Optional[str] = field(default=None, metadata=field_options(alias="serialNumber"))
reading_code: Optional[str] = field(default=None, metadata=field_options(alias="readingCode"))
usage: Optional[str] = field(default=None, metadata=field_options(alias="usage"))

Expand Down

0 comments on commit 96cac01

Please sign in to comment.