Skip to content

Merge pull request #167 from testuser7/scenes #641

Merge pull request #167 from testuser7/scenes

Merge pull request #167 from testuser7/scenes #641

GitHub Actions / Black failed Jun 5, 2024 in 0s

40 errors

Black found 40 errors

Annotations

Check failure on line 3 in /home/runner/work/pywizlight/pywizlight/pywizlight/_version.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/pywizlight/pywizlight/pywizlight/_version.py#L1-L3

 """PyPi Version."""
+
 __version__ = "0.5.14"

Check failure on line 7 in /home/runner/work/pywizlight/pywizlight/pywizlight/discovery.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/pywizlight/pywizlight/pywizlight/discovery.py#L1-L7

 """Discover bulbs in a network."""
+
 import asyncio
 import json
 import logging
 from asyncio import AbstractEventLoop, BaseTransport, DatagramTransport, Future
 from typing import Any, List, Optional, Tuple, cast

Check failure on line 7 in /home/runner/work/pywizlight/pywizlight/pywizlight/cli.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/pywizlight/pywizlight/pywizlight/cli.py#L1-L7

 """Command-line interface to interact with wizlight devices."""
+
 import asyncio
 from functools import wraps
 from typing import Any, Callable, Coroutine, TypeVar
 
 import click

Check failure on line 19 in /home/runner/work/pywizlight/pywizlight/pywizlight/bulblibrary.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/pywizlight/pywizlight/pywizlight/bulblibrary.py#L9-L19

 DW -- Dimmable White (most filament bulbs)
 RGB -- Fullstack bulb
 1C -- Specific to the hardware - defines PWM frequency + way of controlling CCT temperature
 31 -- Related to the hardware revision
 """
+
 import dataclasses
 import logging
 from enum import Enum
 from typing import List, Optional
 

Check failure on line 7 in /home/runner/work/pywizlight/pywizlight/pywizlight/models.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/pywizlight/pywizlight/pywizlight/models.py#L1-L7

 """Models."""
+
 import dataclasses
 from typing import Dict, List
 
 
 @dataclasses.dataclass(frozen=True)

Check failure on line 7 in /home/runner/work/pywizlight/pywizlight/pywizlight/protocol.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/pywizlight/pywizlight/pywizlight/protocol.py#L1-L7

 """pywizlight integration protocol."""
+
 import asyncio
 import logging
 from typing import Callable, Optional, Tuple
 
 _LOGGER = logging.getLogger(__name__)

Check failure on line 7 in /home/runner/work/pywizlight/pywizlight/pywizlight/push_manager.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/pywizlight/pywizlight/pywizlight/push_manager.py#L1-L7

 """pywizlight integration push updates."""
+
 import asyncio
 import json
 import logging
 from typing import Callable, Dict, Optional, Tuple, cast
 

Check failure on line 7 in /home/runner/work/pywizlight/pywizlight/pywizlight/rgbcw.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/pywizlight/pywizlight/pywizlight/rgbcw.py#L1-L7

 """Manages the RGBCW color."""
+
 import logging
 from math import atan2, cos, pi
 from typing import Iterable, Tuple
 
 from .vec import (

Check failure on line 7 in /home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb_bad_json_1_0_0.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb_bad_json_1_0_0.py#L1-L7

 """Tests for the Bulb API with a light strip."""
+
 from typing import AsyncGenerator
 
 import pytest
 
 from pywizlight import wizlight

Check failure on line 7 in /home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb_dimmable_white.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb_dimmable_white.py#L1-L7

 """Tests for the Bulb API with a light strip."""
+
 from typing import AsyncGenerator
 
 import pytest
 
 from pywizlight import wizlight

Check failure on line 7 in /home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb_dimmable_white_1_11_7.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb_dimmable_white_1_11_7.py#L1-L7

 """Tests for the Bulb API with a light strip."""
+
 from typing import AsyncGenerator
 
 import pytest
 
 from pywizlight import wizlight

Check failure on line 7 in /home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb_dimmable_white_1_8_0.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb_dimmable_white_1_8_0.py#L1-L7

 """Tests for the Bulb API with a light strip."""
+
 from typing import AsyncGenerator
 
 import pytest
 
 from pywizlight import wizlight

Check failure on line 7 in /home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb_hero_1_23_70.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb_hero_1_23_70.py#L1-L7

 """Tests for the Bulb API with a Hero."""
+
 from typing import AsyncGenerator
 
 import pytest
 
 from pywizlight import wizlight

Check failure on line 7 in /home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb_invalid_module_name.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb_invalid_module_name.py#L1-L7

 """Tests for the Bulb API with a light strip."""
+
 from typing import AsyncGenerator
 
 import pytest
 
 from pywizlight import wizlight

Check failure on line 7 in /home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb_light_strip_1_16_64.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb_light_strip_1_16_64.py#L1-L7

 """Tests for the Bulb API with a light strip."""
+
 from typing import AsyncGenerator
 
 import pytest
 
 from pywizlight import PilotBuilder, wizlight

Check failure on line 7 in /home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb_light_strip_1_21_4.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb_light_strip_1_21_4.py#L1-L7

 """Tests for the Bulb API with a light strip."""
+
 from typing import AsyncGenerator
 
 import pytest
 
 from pywizlight import PilotBuilder, wizlight

Check failure on line 7 in /home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb.py#L1-L7

 """Tests for the Bulb API."""
+
 from typing import AsyncGenerator
 from unittest.mock import patch
 
 import pytest
 

Check failure on line 7 in /home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb_missing_kelvin_range.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb_missing_kelvin_range.py#L1-L7

 """Tests for the Bulb API with a light strip."""
+
 from typing import AsyncGenerator
 
 import pytest
 
 from pywizlight import wizlight

Check failure on line 7 in /home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb_no_module_name.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb_no_module_name.py#L1-L7

 """Tests for the Bulb API with a light strip."""
+
 from typing import AsyncGenerator
 
 import pytest
 
 from pywizlight import wizlight

Check failure on line 7 in /home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb_light_strip_1_25_0.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb_light_strip_1_25_0.py#L1-L7

 """Tests for the Bulb API with a light strip."""
+
 from typing import AsyncGenerator
 
 import pytest
 
 from pywizlight import PilotBuilder, wizlight

Check failure on line 7 in /home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb_rgbww_1_17_1.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb_rgbww_1_17_1.py#L1-L7

 """Tests for the Bulb API."""
+
 from typing import AsyncGenerator
 
 import pytest
 
 from pywizlight import wizlight

Check failure on line 7 in /home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb_rgbw_1_21_4.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb_rgbw_1_21_4.py#L1-L7

 """Tests for the Bulb API with a rgbtw bulb."""
+
 from typing import AsyncGenerator
 
 import pytest
 
 from pywizlight import wizlight

Check failure on line 7 in /home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb_socket.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb_socket.py#L1-L7

 """Tests for the Bulb API with a socket."""
+
 from typing import AsyncGenerator
 
 import pytest
 
 from pywizlight import wizlight

Check failure on line 7 in /home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb_socket_1_16_71.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/pywizlight/pywizlight/pywizlight/tests/test_bulb_socket_1_16_71.py#L1-L7

 """Tests for the Bulb API with a socket."""
+
 from typing import AsyncGenerator
 
 import pytest
 
 from pywizlight import wizlight

Check failure on line 7 in /home/runner/work/pywizlight/pywizlight/pywizlight/bulb.py

See this annotation in the file changed.

@github-actions github-actions / Black

/home/runner/work/pywizlight/pywizlight/pywizlight/bulb.py#L1-L7

 """pywizlight integration."""
+
 import asyncio
 import contextlib
 import json
 import logging
 import time