Skip to content

Commit

Permalink
Allow bluetooth devices to be passed through
Browse files Browse the repository at this point in the history
  • Loading branch information
emlove committed Jan 24, 2025
1 parent c0313be commit 76284df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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.

2 changes: 1 addition & 1 deletion pykulersky/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__ = '[email protected]'
__version__ = '0.5.5'
6 changes: 3 additions & 3 deletions pykulersky/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 76284df

Please sign in to comment.