Skip to content

Enhancement/reuse session#5

Merged
iMicknl merged 13 commits intomasterfrom
enhancement/reuse_session
Jul 17, 2020
Merged

Enhancement/reuse session#5
iMicknl merged 13 commits intomasterfrom
enhancement/reuse_session

Conversation

@iMicknl
Copy link
Copy Markdown
Owner

@iMicknl iMicknl commented Jul 17, 2020

  • Reuse session
  • Abstract login method
  • Add first exception logic

@iMicknl iMicknl requested a review from tetienne July 17, 2020 17:19
Comment thread pyproject.toml
[tool.poetry.dependencies]
python = ">=3.6"
aiohttp = "^3.6.2"
aiohttp = "3.6.1"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why downgrade the version?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently I am loading the integration in ha-tahoma via manifest.json. In development, this conflicts with the built-in version of aihttp in HA. I downgraded it temporarily for development.

  "requirements": [
    "git+https://github.com/iMicknl/python-tahoma-api.git@enhancement/reuse_session#tahoma_api===0.1.0"
  ],

Comment thread tahoma_api/client.py Outdated
Comment thread tahoma_api/client.py

return response

async def __do_http_request(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In a future PR, it would be nice to create dedicated get and post methods.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tetienne agree, I am not a fan of this huge method yet.

Comment thread tahoma_api/client.py Outdated
Comment thread tahoma_api/client.py Outdated
Comment thread tahoma_api/models.py Outdated
@iMicknl iMicknl merged commit 22b7985 into master Jul 17, 2020
@iMicknl iMicknl deleted the enhancement/reuse_session branch July 17, 2020 22:20
tetienne pushed a commit that referenced this pull request Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants