Add get_holiday.
This commit is contained in:
parent
e66627bf8a
commit
cf195e83ed
12
neohub.py
12
neohub.py
|
@ -131,7 +131,7 @@ class NeoHub:
|
|||
Format is specified using ScheduleFormat enum:
|
||||
"""
|
||||
|
||||
message = {"SET_FORMAT": format: ScheduleFormat}
|
||||
message = {"SET_FORMAT": format}
|
||||
reply = {"result": "Format was set"}
|
||||
|
||||
result = await self._send(message, reply)
|
||||
|
@ -151,3 +151,13 @@ class NeoHub:
|
|||
|
||||
result = await self._send(message, reply)
|
||||
return result
|
||||
|
||||
|
||||
async def get_holiday(self):
|
||||
"""
|
||||
Get list of holidays
|
||||
"""
|
||||
message = {"GET_HOLIDAY": 0}
|
||||
|
||||
result = await self._send(message)
|
||||
return result
|
||||
|
|
Loading…
Reference in New Issue