Skip to content

Commit 8c0cb16

Browse files
committed
remove static method from image_converter_url
1 parent dd82024 commit 8c0cb16

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

adafruit_pyportal/network.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,15 @@ def __init__(
9090
self._image_resize = image_resize
9191
self._image_position = image_position
9292
self._image_dim_json_path = image_dim_json_path
93-
93+
self._secrets = secrets_data
9494
gc.collect()
9595

9696
@property
9797
def ip_address(self):
9898
"""Return the IP Address nicely formatted"""
9999
return self._wifi.esp.pretty_ip(self._wifi.esp.ip_address)
100100

101-
@staticmethod
102-
def image_converter_url(image_url, width, height, color_depth=16):
101+
def image_converter_url(self, image_url, width, height, color_depth=16):
103102
"""Generate a converted image url from the url passed in,
104103
with the given width and height. aio_username and aio_key must be
105104
set in secrets."""

0 commit comments

Comments
 (0)