You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The AsyncZabbixAPI class cannot be used in a with statement like the ZabbixAPI class. This is due to a difference in the initialization process between the two classes.
Current Behavior
ZabbixAPI automatically logs in during the __init__ function.
AsyncZabbixAPI does not automatically log in during initialization.
Expected Behavior
Users expect to be able to use AsyncZabbixAPI in a with statement similar to ZabbixAPI for consistent usage patterns.
Proposed Solution
Perform the asynchronous login in the __aenter__ method.
The
AsyncZabbixAPI
class cannot be used in awith
statement like theZabbixAPI
class. This is due to a difference in the initialization process between the two classes.Current Behavior
ZabbixAPI
automatically logs in during the__init__
function.AsyncZabbixAPI
does not automatically log in during initialization.Expected Behavior
Users expect to be able to use
AsyncZabbixAPI
in awith
statement similar toZabbixAPI
for consistent usage patterns.Proposed Solution
Perform the asynchronous login in the
__aenter__
method.The text was updated successfully, but these errors were encountered: