mirror of
https://github.com/home-assistant/core.git
synced 2026-12-04 12:50:45 -04:00
Define __init__ before other methods in Minio (#187556)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude
parent
d3a7c4b635
commit
406bdab23f
@@ -52,16 +52,16 @@ def get_minio_notification_response(
|
||||
class MinioEventStreamIterator(Iterable):
|
||||
"""Iterator wrapper over notification http response stream."""
|
||||
|
||||
@override
|
||||
def __iter__(self) -> Self:
|
||||
"""Return self."""
|
||||
return self
|
||||
|
||||
def __init__(self, response):
|
||||
"""Init."""
|
||||
self._response = response
|
||||
self._stream = response.stream()
|
||||
|
||||
@override
|
||||
def __iter__(self) -> Self:
|
||||
"""Return self."""
|
||||
return self
|
||||
|
||||
def __next__(self):
|
||||
"""Get next not empty line."""
|
||||
while True:
|
||||
|
||||
Reference in New Issue
Block a user