Upgrade pillow to 6.2.0 (#27581)

This commit is contained in:
Fabian Affolter authored and Martin Hjelmare committed 2019-10-13 14:46:12 +02:00
1 parent bb2a1cd439
commit bbafeb5da2
8 files changed
+21 -26

No files matched your search

+1 -1
View File
@@ -1 +1 @@
"""The qrcode component."""
"""The QR code component."""
@@ -1,15 +1,20 @@
"""Support for the QR image processing."""
from homeassistant.core import split_entity_id
"""Support for the QR code image processing."""
import io
from PIL import Image
from pyzbar import pyzbar
from homeassistant.components.image_processing import (
ImageProcessingEntity,
CONF_SOURCE,
CONF_ENTITY_ID,
CONF_NAME,
CONF_SOURCE,
ImageProcessingEntity,
)
from homeassistant.core import split_entity_id
def setup_platform(hass, config, add_entities, discovery_info=None):
"""Set up the demo image processing platform."""
"""Set up the QR code image processing platform."""
# pylint: disable=unused-argument
entities = []
for camera in config[CONF_SOURCE]:
@@ -19,7 +24,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
class QrEntity(ImageProcessingEntity):
"""QR image processing entity."""
"""A QR image processing entity."""
def __init__(self, camera_entity, name):
"""Initialize QR image processing entity."""
@@ -49,10 +54,6 @@ class QrEntity(ImageProcessingEntity):
def process_image(self, image):
"""Process image."""
import io
from pyzbar import pyzbar
from PIL import Image
stream = io.BytesIO(image)
img = Image.open(stream)
@@ -3,7 +3,7 @@
"name": "Qrcode",
"documentation": "https://www.home-assistant.io/integrations/qrcode",
"requirements": [
"pillow==6.1.0",
"pillow==6.2.0",
"pyzbar==0.1.7"
],
"dependencies": [],