Skip to content

Commit

Permalink
Formats code with black
Browse files Browse the repository at this point in the history
  • Loading branch information
SeraphimSerapis committed Jan 11, 2021
1 parent e729878 commit 0b978b1
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 24 deletions.
46 changes: 23 additions & 23 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,36 +10,36 @@

here = os.path.abspath(os.path.dirname(__file__))

with open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
with open(os.path.join(here, "README.rst"), encoding="utf-8") as f:
long_description = f.read()

if sys.argv[-1] == 'publish':
os.system('python3 setup.py sdist upload')
if sys.argv[-1] == "publish":
os.system("python3 setup.py sdist upload")
sys.exit()

setup(
name='volkszaehler',
version='0.2.1',
description='Python Wrapper for interacting with the Volkszahler API.',
name="volkszaehler",
version="0.2.1",
description="Python Wrapper for interacting with the Volkszahler API.",
long_description=long_description,
url='https://github.com/home-assistant-ecosystem/python-volkszaehler',
download_url='https://github.com/home-assistant-ecosystem/python-volkszaehler/releases',
author='Fabian Affolter',
author_email='fabian@affolter-engineering.ch',
license='MIT',
install_requires=['aiohttp', 'async_timeout'],
packages=['volkszaehler'],
url="https://github.com/home-assistant-ecosystem/python-volkszaehler",
download_url="https://github.com/home-assistant-ecosystem/python-volkszaehler/releases",
author="Fabian Affolter",
author_email="fabian@affolter-engineering.ch",
license="MIT",
install_requires=["aiohttp", "async_timeout"],
packages=["volkszaehler"],
zip_safe=True,
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Utilities',
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Topic :: Utilities",
],
)
13 changes: 12 additions & 1 deletion volkszaehler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,21 @@
_RESOURCE_FROM = "from={param_from}"
_RESOURCE_TO = "to={param_to}"


class Volkszaehler(object):
"""A class for handling the data retrieval."""

def __init__(self, loop, session, uuid, host="localhost", port=80, tls=False, param_from="", param_to=""):
def __init__(
self,
loop,
session,
uuid,
host="localhost",
port=80,
tls=False,
param_from="",
param_to="",
):
"""Initialize the connection to the API."""
self._loop = loop
self._session = session
Expand Down

0 comments on commit 0b978b1

Please sign in to comment.