Fix black on homematicip_cloud binary_sensor (#39351)

pull/39353/head
Chris Talkington 2020-08-28 00:47:27 -05:00 committed by GitHub
parent 98db0a2d2e
commit ab90ea7884
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -87,7 +87,10 @@ async def async_setup_entry(
entities.append(HomematicipAccelerationSensor(hap, device))
if isinstance(device, (AsyncContactInterface, AsyncFullFlushContactInterface)):
entities.append(HomematicipContactInterface(hap, device))
if isinstance(device, (AsyncShutterContact, AsyncShutterContactMagnetic),):
if isinstance(
device,
(AsyncShutterContact, AsyncShutterContactMagnetic),
):
entities.append(HomematicipShutterContact(hap, device))
if isinstance(device, AsyncRotaryHandleSensor):
entities.append(HomematicipShutterContact(hap, device, True))