Skip to content

Commit

Permalink
Merge pull request #61 from prahal/fixups-gce
Browse files Browse the repository at this point in the history
Fixups gce
  • Loading branch information
Aohzan authored Jul 17, 2024
2 parents bfb881c + ccd6c3b commit ecdd977
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CHANGELOG

## 0.7.1

- Fix mixup between device ID and device address in english for send_command service
- Fix RfplayerDevice available getter

## 0.7.0

- Fix default conf missing error during initialization
Expand Down
2 changes: 1 addition & 1 deletion custom_components/rfplayer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def _handle_event(self, event) -> None:
@property
def available(self) -> bool:
"""Return True if entity is available."""
return bool(self._protocol)
return bool(self._available)

@callback
def _availability_callback(self, availability) -> None:
Expand Down
2 changes: 1 addition & 1 deletion custom_components/rfplayer/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async def add_new_device(device_info):


class RfplayerSwitch(RfplayerDevice, SwitchEntity):
"""Representation of a Rfplayer sensor."""
"""Representation of a Rfplayer switch."""

# pylint: disable-next=too-many-arguments
def __init__(
Expand Down
4 changes: 2 additions & 2 deletions custom_components/rfplayer/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@
"name": "Command"
},
"device_address": {
"description": "Exclusive with device ID (eg 1).",
"description": "Exclusive with device address (eg A1).",
"name": "Device address"
},
"device_id": {
"description": "Exclusive with device address (eg A1).",
"description": "Exclusive with device ID (eg 1).",
"name": "Device ID"
},
"protocol": {
Expand Down

0 comments on commit ecdd977

Please sign in to comment.