diff --git a/LICENSE b/LICENSE index 4d07f26..99c2658 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ Apache Software License 2.0 -Copyright (c) 2020, Emily Mills +Copyright (c) 2020, Emily Love Watson Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,4 +13,3 @@ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - diff --git a/pykulersky/__init__.py b/pykulersky/__init__.py index 8f04dc4..fe87d36 100644 --- a/pykulersky/__init__.py +++ b/pykulersky/__init__.py @@ -3,6 +3,6 @@ from .light import Light # noqa: F401 from .exceptions import * # noqa: F401, F403 -__author__ = """Emily Love Mills""" +__author__ = """Emily Love Watson""" __email__ = 'emily@emlove.me' __version__ = '0.5.5' diff --git a/pykulersky/light.py b/pykulersky/light.py index 3751366..f226fb6 100644 --- a/pykulersky/light.py +++ b/pykulersky/light.py @@ -15,13 +15,13 @@ class Light(): """Represents one connected light""" - def __init__(self, address, name=None, *args, + def __init__(self, address_or_ble_device, name=None, *args, default_timeout=DEFAULT_TIMEOUT): import bleak - self._address = address + self._address = getattr(address_or_ble_device, 'address', address_or_ble_device) self._name = name - self._client = bleak.BleakClient(self._address) + self._client = bleak.BleakClient(address_or_ble_device) self._default_timeout = DEFAULT_TIMEOUT @property