forked from andrius/neohubapi
Add dependency on async_property.
This commit is contained in:
parent
c9041e7caf
commit
fed09bdaff
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
__pycache__
|
__pycache__
|
||||||
*~
|
*~
|
||||||
|
*#*#
|
||||||
.kdev4
|
.kdev4
|
||||||
*.kdev4
|
*.kdev4
|
||||||
build/
|
build/
|
||||||
|
|
|
@ -5,6 +5,7 @@ import asyncio
|
||||||
import datetime
|
import datetime
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
|
from async_property import async_property, async_cached_property
|
||||||
from types import SimpleNamespace
|
from types import SimpleNamespace
|
||||||
|
|
||||||
from neohubapi.enums import ScheduleFormat
|
from neohubapi.enums import ScheduleFormat
|
||||||
|
@ -75,6 +76,7 @@ class NeoHub:
|
||||||
data.ALT_TIMER_FORMAT = schedule_format_int_to_enum(data.ALT_TIMER_FORMAT)
|
data.ALT_TIMER_FORMAT = schedule_format_int_to_enum(data.ALT_TIMER_FORMAT)
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
@async_cached_property
|
||||||
async def target_temperature_step(self):
|
async def target_temperature_step(self):
|
||||||
"""
|
"""
|
||||||
Returns Neohub's target temperature step
|
Returns Neohub's target temperature step
|
||||||
|
|
20
setup.py
20
setup.py
|
@ -10,21 +10,23 @@ with open("README.md", "r", encoding="utf-8") as fh:
|
||||||
long_description = fh.read()
|
long_description = fh.read()
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name = "neohubapi",
|
name="neohubapi",
|
||||||
version = "0.1",
|
version="0.1",
|
||||||
description = "Async library to communicate with Heatmiser NeoHub 2 API.",
|
description="Async library to communicate with Heatmiser NeoHub 2 API.",
|
||||||
url = "https://gitlab.com/neohubapi/neohubapi/",
|
url="https://gitlab.com/neohubapi/neohubapi/",
|
||||||
author = "Andrius Štikonas",
|
author="Andrius Štikonas",
|
||||||
author_email = "andrius@stikonas.eu",
|
author_email="andrius@stikonas.eu",
|
||||||
classifiers=[
|
classifiers=[
|
||||||
"Programming Language :: Python :: 3",
|
"Programming Language :: Python :: 3",
|
||||||
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
|
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
|
||||||
"Operating System :: OS Independent",
|
"Operating System :: OS Independent",
|
||||||
],
|
],
|
||||||
|
install_requires=[
|
||||||
|
'async_property',
|
||||||
|
],
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type='text/markdown',
|
long_description_content_type='text/markdown',
|
||||||
packages=setuptools.find_packages(),
|
packages=setuptools.find_packages(),
|
||||||
install_requires = ['neohubapi'],
|
keywords=['neohub', 'heatmiser'],
|
||||||
keywords = ['neohub', 'heatmiser'],
|
zip_safe=True,
|
||||||
zip_safe = True,
|
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue