Skip to content
Snippets Groups Projects

Beekeepy: Add session holder class and session token handling

Merged Krzysztof Mochocki requested to merge kmochocki/beekeepy into develop
Compare and Show latest version
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
@@ -20,7+20,7 @@
from loguru import Logger
from helpy._communication.abc.communicator import AbstractCommunicator
from helpy._handles.abc.api_collection import AbstractAsyncApiCollection, AbstractSyncApiCollection
from helpy._handles.batch_handle import AsyncBatchHandle, SyncBatchHandle
from helpy._interfaces.url import HttpUrl
@@ -59,7+59,7 @@
def http_endpoint(self, value: HttpUrl) -> None:
"""Set http endpoint."""
self.logger.debug(f"setting http endpoint to: {value.as_string()}")
self.settings.http_endpoint = value
with self.update_settings() as settings:
settings.http_endpoint = value
@property
def api(self) -> AbstractAsyncApiCollection | AbstractSyncApiCollection:
Loading