Upgrade black to 20.8b1 (#39287)

This commit is contained in:
Franck Nijhof authored and GitHub committed 2020-08-27 13:56:20 +02:00
1 parent 0d7eec710c
commit 1c2ebdf307
574 files changed
+4389 -1725

No files matched your search

@@ -251,7 +251,9 @@ async def webhook_stream_camera(hass, config_entry, data):
if camera is None:
return webhook_response(
{"success": False}, registration=config_entry.data, status=HTTP_BAD_REQUEST,
{"success": False},
registration=config_entry.data,
status=HTTP_BAD_REQUEST,
)
resp = {"mjpeg_path": "/api/camera_proxy_stream/%s" % (camera.entity_id)}
@@ -342,7 +344,8 @@ async def webhook_update_registration(hass, config_entry, data):
hass.config_entries.async_update_entry(config_entry, data=new_registration)
return webhook_response(
safe_registration(new_registration), registration=new_registration,
safe_registration(new_registration),
registration=new_registration,
)
@@ -420,7 +423,9 @@ async def webhook_register_sensor(hass, config_entry, data):
async_dispatcher_send(hass, register_signal, data)
return webhook_response(
{"success": True}, registration=config_entry.data, status=HTTP_CREATED,
{"success": True},
registration=config_entry.data,
status=HTTP_CREATED,
)