Browse Source

Add dependency on async_property.

master
Andrius Štikonas 9 months ago
parent
commit
fed09bdaff
  1. 1
      .gitignore
  2. 2
      neohubapi/neohub.py
  3. 20
      setup.py

1
.gitignore

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

2
neohubapi/neohub.py

@ -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

20
setup.py

@ -10,21 +10,23 @@ with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setuptools.setup(
name = "neohubapi",
version = "0.1",
description = "Async library to communicate with Heatmiser NeoHub 2 API.",
url = "https://gitlab.com/neohubapi/neohubapi/",
author = "Andrius Štikonas",
author_email = "andrius@stikonas.eu",
name="neohubapi",
version="0.1",
description="Async library to communicate with Heatmiser NeoHub 2 API.",
url="https://gitlab.com/neohubapi/neohubapi/",
author="Andrius Štikonas",
author_email="andrius@stikonas.eu",
classifiers=[
"Programming Language :: Python :: 3",
"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,
keywords=['neohub', 'heatmiser'],
zip_safe=True,
)
Loading…
Cancel
Save