Skip to content

Commit

Permalink
Fix entity names
Browse files Browse the repository at this point in the history
  • Loading branch information
bkbilly committed May 29, 2024
1 parent 59a57fd commit 5223617
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion lnxlink/modules/bash.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def __init__(self, lnxlink):
def exposed_controls(self):
"""Exposes to home assistant"""
discovery_info = {
"Bash_Command": {
"Bash Command": {
"type": "text",
"icon": "mdi:bash",
}
Expand Down
10 changes: 5 additions & 5 deletions lnxlink/modules/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,30 +36,30 @@ def exposed_controls(self):
"value_template": "{{ value_json.status }}",
"attributes_template": "{{ value_json | tojson }}",
},
"playpause": {
"PlayPause": {
"type": "button",
"icon": "mdi:play-pause",
"enabled": False,
},
"previous": {
"Previous": {
"type": "button",
"icon": "mdi:skip-previous",
"enabled": False,
},
"next": {
"Next": {
"type": "button",
"icon": "mdi:skip-next",
"enabled": False,
},
"volume_set": {
"Volume Set": {
"type": "number",
"icon": "mdi:volume-high",
"min": 0,
"max": 100,
"enabled": False,
"value_template": "{{ value_json.volume }}",
},
"thumbnail": {
"Thumbnail": {
"type": "image",
"method": self.get_thumbnail,
"encoding": "b64",
Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/restart.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def start_control(self, topic, data):
def exposed_controls(self):
"""Exposes to home assistant"""
return {
"restart": {
"Restart": {
"type": "button",
"icon": "mdi:restart",
}
Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/send_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(self, lnxlink):
def exposed_controls(self):
"""Exposes to home assistant"""
return {
"Send_Keys": {
"Send Keys": {
"type": "text",
"icon": "mdi:keyboard-outline",
}
Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/shutdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def start_control(self, topic, data):
def exposed_controls(self):
"""Exposes to home assistant"""
return {
"shutdown": {
"Shutdown": {
"type": "button",
"icon": "mdi:power",
}
Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/suspend.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def start_control(self, topic, data):
def exposed_controls(self):
"""Exposes to home assistant"""
return {
"suspend": {
"Suspend": {
"type": "button",
"icon": "mdi:progress-clock",
}
Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/systemd.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def exposed_controls(self):
discovery_info = {}
for service in self.services:
name = service.replace(".service", "")
discovery_info[f"systemd_{name}"] = {
discovery_info[f"Systemd {name}"] = {
"type": "switch",
"icon": "mdi:application-cog",
"value_template": f"{{{{ value_json.get('{name}') }}}}",
Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/xdg_open.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __init__(self, lnxlink):
def exposed_controls(self):
"""Exposes to home assistant"""
return {
"XDG_Open": {
"XDG Open": {
"type": "text",
"icon": "mdi:file-find-outline",
}
Expand Down

0 comments on commit 5223617

Please sign in to comment.