Skip to content

Commit

Permalink
Merge pull request #65 from claudegel/Log
Browse files Browse the repository at this point in the history
Bux fix and typo
  • Loading branch information
claudegel authored Jan 5, 2024
2 parents 579bc9e + 46705c6 commit 75a4111
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion custom_components.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"neviweb": {
"version": "2.1.5",
"version": "2.1.6",
"local_location": "/custom_components/neviweb/__init__.py",
"remote_location": "https://github.com/claudegel/sinope-1/tree/master/custom_components/neviweb/__init__.py",
"visit_repo": "https://github.com/claudegel/sinope-1",
Expand Down
6 changes: 3 additions & 3 deletions custom_components/neviweb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
)

#REQUIREMENTS = ['PY_Sinope==0.1.5']
VERSION = '2.1.5'
VERSION = '2.1.6'

_LOGGER = logging.getLogger(__name__)

Expand Down Expand Up @@ -331,7 +331,7 @@ def get_device_daily_stats(self, device_id):
if "values" in data:
return data["values"]
else:
_LOGGER.debug("Daily stat error: %s", data)
_LOGGER.debug("Daily stat error: %s, %s", data, device_id)
return None

def get_device_hourly_stats(self, device_id):
Expand All @@ -353,7 +353,7 @@ def get_device_hourly_stats(self, device_id):
if "values" in data:
return data["values"]
else:
_LOGGER.debug("Hourly stat error: %s", data)
_LOGGER.debug("Hourly stat error: %s, %s", data, device_id)
return None

def set_brightness(self, device_id, brightness):
Expand Down
4 changes: 2 additions & 2 deletions custom_components/neviweb/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,15 +349,15 @@ def update(self):
self._energy_stat_time = time.time()
if self._energy_stat_time == 0:
self._energy_stat_time = start

@property
def supported_color_modes(self):
"""Return the list of supported colorMode features."""
if self._is_dimmable:
return ColorMode.BRIGHTNESS
else:
return ColorMode.ONOFF

@property
def unique_id(self):
"""Return unique ID based on Neviweb device ID."""
Expand Down
2 changes: 1 addition & 1 deletion custom_components/neviweb/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"dependencies": [],
"codeowners": ["@claudegel"],
"requirements": [],
"version": "2.1.5"
"version": "2.1.6"
}

0 comments on commit 75a4111

Please sign in to comment.