Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
glpatcern committed Nov 13, 2018
1 parent 6c48a4f commit b455e5f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions homeassistant/components/camera/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def _precheck_image(image, opts):
raise ValueError
return img


def _resize_image(image, opts):
"""Resize image."""
from PIL import Image
Expand Down Expand Up @@ -119,9 +120,9 @@ def _resize_image(image, opts):
old_width, old_height, old_size, new_width, new_height, len(newimage))
return newimage


def _crop_image(image, opts):
"""Crop image."""
from PIL import Image
import io

try:
Expand Down Expand Up @@ -157,7 +158,7 @@ def _crop_image(image, opts):
class ImageOpts():
"""The representation of image options."""

def __init__(self, max_width, max_height, left, top, \
def __init__(self, max_width, max_height, left, top,
quality, force_resize):
"""Initialize image options."""
self.max_width = max_width
Expand Down

0 comments on commit b455e5f

Please sign in to comment.