Skip to content

Commit abb3cee

Browse files
author
Nicolas Berthel
authored
Merge pull request #3 from markbergsma/list_units
Add Becker method to return all configured units
2 parents 751399b + 5b1b3d9 commit abb3cee

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pybecker/becker.py

+7
Original file line numberDiff line numberDiff line change
@@ -230,3 +230,10 @@ async def pair(self, channel):
230230
:type channel: str
231231
"""
232232
await self.send(channel, "TRAIN")
233+
234+
async def list_units(self):
235+
"""
236+
Return all configured units as a list.
237+
"""
238+
239+
return self.db.get_all_units()

0 commit comments

Comments
 (0)