Skip to content

Commit

Permalink
Merge pull request #8 from MrBearPresident/V1.2.1_Beta
Browse files Browse the repository at this point in the history
V1.2.1 beta
  • Loading branch information
MrBearPresident authored Nov 14, 2024
2 parents 996d786 + de933d0 commit 00a0b49
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions custom_components/jbl_integration/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ def __init__(self, coordinator, entry, actionstring, name, icon):
self.entityName = name
self.entityicon = icon
self.actionstring = actionstring
self.entity_id = f"button.{self.coordinator.device_info.get("name", "jbl_integration").replace(' ', '_').lower()}_{self.entityName.replace(' ', '_').lower()}"


@property
def name(self):
Expand Down
2 changes: 1 addition & 1 deletion custom_components/jbl_integration/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ async def getEQ(self):
_LOGGER.error("Failed to get EQ: %s", response.status)
return {}
except Exception as e:
_LOGGER.error("Error getting EQ: %s", str(e))
_LOGGER.warning("Error getting EQ: %s", str(e))
return {}

async def setEQ(self, value: float, frequency):
Expand Down
2 changes: 1 addition & 1 deletion custom_components/jbl_integration/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"iot_class": "local_polling",
"issue_tracker": "https://github.com/MrBearPresident/JBL_Soundbar/issues",
"requirements": [],
"version": "1.2.0"
"version": "1.2.1"
}

3 changes: 3 additions & 0 deletions custom_components/jbl_integration/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ def __init__(self, entry: ConfigEntry, coordinator: Coordinator):
self._entry = entry
self._value = 0
self.coordinator = coordinator
self.entity_id = f"number.{self.coordinator.device_info.get("name", "jbl_integration").replace(' ', '_').lower()}_{self.name.lower()}"


@property
def name(self):
Expand Down Expand Up @@ -101,6 +103,7 @@ def __init__(self, entry: ConfigEntry, coordinator: Coordinator, eqLevel ):
self._value = 0
self.entityName = eqLevel
self.coordinator = coordinator
self.entity_id = f"number.{self.coordinator.device_info.get("name", "jbl_integration").replace(' ', '_').lower()}_{self.entityName.lower()}"

@property
def name(self):
Expand Down
1 change: 1 addition & 0 deletions custom_components/jbl_integration/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def __init__(self, coordinator, entry, infoString, name, icon):
self._entry = entry
self.entityName = name
self.entityicon = icon
self.entity_id = f"button.{self.coordinator.device_info.get("name", "jbl_integration").replace(' ', '_').lower()}_{self.entityName.replace(' ', '_').lower()}"
self.infoString = infoString

@property
Expand Down
3 changes: 2 additions & 1 deletion custom_components/jbl_integration/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def __init__(self, entry: ConfigEntry, coordinator: Coordinator):
"""Initialize the switch."""
self._entry = entry
self._is_on = False
self.coordinator = coordinator
self.coordinator = coordinator
self.entity_id = f"switch.{self.coordinator.device_info.get("name", "jbl_integration").replace(' ', '_').lower()}_power"

@property
def name(self):
Expand Down

0 comments on commit 00a0b49

Please sign in to comment.