Skip to content

Commit ee8b9fe

Browse files
authored
Merge pull request #29 from ilikecake/main
Add address property
2 parents ed008a9 + 42a133f commit ee8b9fe

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

adafruit_ds18x20.py

+7
Original file line numberDiff line numberDiff line change
@@ -155,3 +155,10 @@ def read_temperature(self) -> float:
155155
"""Read the temperature. No polling of the conversion busy bit
156156
(assumes that the conversion has completed)."""
157157
return self._read_temp()
158+
159+
@property
160+
def address(self):
161+
"""The address of the device. Useful if there are multiple sensors on the bus.
162+
163+
Note: this property is read only."""
164+
return self._address

0 commit comments

Comments
 (0)