From aa769238049d1614861e517970f9f7933c2f3f62 Mon Sep 17 00:00:00 2001 From: Vlad Korolev Date: Thu, 8 Aug 2024 20:16:26 -0400 Subject: [PATCH] Small fixes --- src/greenbutton_objects/atom/object_tree.py | 4 ++-- src/greenbutton_objects/orig_objects/objects.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/greenbutton_objects/atom/object_tree.py b/src/greenbutton_objects/atom/object_tree.py index 9e3833f..805fc52 100644 --- a/src/greenbutton_objects/atom/object_tree.py +++ b/src/greenbutton_objects/atom/object_tree.py @@ -44,8 +44,8 @@ def get_related_of_type(self, elements_type: type) -> Iterable["EntryNode"]: elements = [obj for obj in self.related if obj.content_type is elements_type] return elements - def safe_get_content(self, type: type) -> Union[Any, None]: - obj = get_first(self.get_related_of_type(type)) + def safe_get_content(self, content_type: type) -> Union[Any, None]: + obj = get_first(self.get_related_of_type(content_type)) return obj.first_content() if obj else None diff --git a/src/greenbutton_objects/orig_objects/objects.py b/src/greenbutton_objects/orig_objects/objects.py index 7585319..3e7d1c0 100644 --- a/src/greenbutton_objects/orig_objects/objects.py +++ b/src/greenbutton_objects/orig_objects/objects.py @@ -30,7 +30,7 @@ class IntervalReading: current interval reading. :ivar time_period: The date time and duration of a reading. If not specified, readings for each “intervalLength” in ReadingType are present. - :ivar value: [correction] Value in units specified by ReadingType + :ivar raw_value: [correction] Value in units specified by ReadingType (not scaled) :ivar consumption_tier: [extension] Code for consumption tier associated with reading. :ivar tou: [extension] Code for the TOU type of reading. :ivar cpp: [extension] Critical peak period (CPP) bucket the reading