Add dependency on async_property.

This commit is contained in:
Andrius Štikonas 2020-12-27 20:18:22 +00:00
parent c9041e7caf
commit fed09bdaff
3 changed files with 14 additions and 9 deletions

1
.gitignore vendored
View File

@ -3,6 +3,7 @@
__pycache__
*~
*#*#
.kdev4
*.kdev4
build/

View File

@ -5,6 +5,7 @@ import asyncio
import datetime
import json
import logging
from async_property import async_property, async_cached_property
from types import SimpleNamespace
from neohubapi.enums import ScheduleFormat
@ -75,6 +76,7 @@ class NeoHub:
data.ALT_TIMER_FORMAT = schedule_format_int_to_enum(data.ALT_TIMER_FORMAT)
return data
@async_cached_property
async def target_temperature_step(self):
"""
Returns Neohub's target temperature step

View File

@ -21,10 +21,12 @@ setuptools.setup(
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
"Operating System :: OS Independent",
],
install_requires=[
'async_property',
],
long_description=long_description,
long_description_content_type='text/markdown',
packages=setuptools.find_packages(),
install_requires = ['neohubapi'],
keywords=['neohub', 'heatmiser'],
zip_safe=True,
)