Skip to content

Commit

Permalink
Merge pull request #16 from k0rventen/candidate-1.5.2
Browse files Browse the repository at this point in the history
Candidate 1.5.2
  • Loading branch information
k0rventen committed Jan 10, 2021
2 parents 46f4119 + 0808deb commit 60c0007
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -5,8 +5,10 @@ python:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
before_install:
- sudo apt-get install -y python3-pip libglib2.0-dev

script:
- python3 setup.py install
- python3 -c "import avea;print(avea)"
2 changes: 1 addition & 1 deletion avea/__init__.py
Expand Up @@ -2,5 +2,5 @@
A python library to control Elgato's Avea Bulb.
"""

__version__ = "1.5.2"
from .avea import *
6 changes: 3 additions & 3 deletions avea/avea.py
Expand Up @@ -2,7 +2,7 @@
Creator : k0rventen
License : MIT
Source : https://github.com/k0rventen/avea
Version : 1.4
Version : 1.5.2
"""

# Standard imports
Expand Down Expand Up @@ -166,7 +166,7 @@ def set_smooth_transition(self, target_red, target_green, target_blue, duration=
"""
try:
init_r, init_g, init_b = self.get_rgb()
except:
except Exception:
print("Could not connect to bulb")
return
if self.connect():
Expand All @@ -190,7 +190,7 @@ def set_smooth_transition(self, target_red, target_green, target_blue, duration=
val = compute_color(check_bounds(0),check_bounds(transition_table_red[i]*16),check_bounds(transition_table_green[i]*16),check_bounds(transition_table_blue[i]*16))
try:
self.bulb.writeCharacteristic(40,val)
except:
except Exception:
self.disconnect()
self.connect()
time.sleep(interval)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -6,7 +6,7 @@

setuptools.setup(
name="avea",
version="1.5.1",
version="1.5.2",
author="k0rventen",
description="Control an Elgato Avea bulb using python3",
long_description=long_description,
Expand Down

0 comments on commit 60c0007

Please sign in to comment.