Skip to content

Commit

Permalink
Translation fixes
Browse files Browse the repository at this point in the history
 * Fix issues that was causing hassfest to fail

Sem-Ver: bugfix
  • Loading branch information
Expl0dingBanana committed Jan 13, 2025
1 parent ed02ef5 commit a464298
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions custom_components/hubspace/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

SERVICE_SEND_COMMAND = "send_command"

SERVICE_SEND_COMMAND_FUNC_CLASS: Final[str] = "functionClass"
SERVICE_SEND_COMMAND_FUNC_INSTANCE: Final[str] = "functionInstance"
SERVICE_SEND_COMMAND_FUNC_CLASS: Final[str] = "function_class"
SERVICE_SEND_COMMAND_FUNC_INSTANCE: Final[str] = "function_instance"
SERVICE_SEND_COMMAND_VALUE: Final[str] = "value"
SERVICE_SEND_COMMAND_ACCOUNT: Final[str] = "account"

Expand Down
12 changes: 6 additions & 6 deletions custom_components/hubspace/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@
"name": "[%key:component::hubspace::services::send_command::fields::value::name%]",
"description": "[%key:component::hubspace::services::send_command::fields::value::description%]"
},
"functionClass": {
"name": "[%key:component::hubspace::services::send_command::fields::functionClass::name%]",
"description": "[%key:component::hubspace::services::send_command::fields::functionClass::description%]"
"function_class": {
"name": "[%key:component::hubspace::services::send_command::fields::function_class::name%]",
"description": "[%key:component::hubspace::services::send_command::fields::function_class::description%]"
},
"functionInstance": {
"name": "[%key:component::hubspace::services::send_command::fields::functionInstance::name%]",
"description": "[%key:component::hubspace::services::send_command::fields::functionInstance::description%]"
"function_instance": {
"name": "[%key:component::hubspace::services::send_command::fields::function_instance::name%]",
"description": "[%key:component::hubspace::services::send_command::fields::function_instance::description%]"
},
"account": {
"name": "[%key:component::hubspace::services::send_command::fields::account::name%]",
Expand Down
4 changes: 2 additions & 2 deletions custom_components/hubspace/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@
"name": "Value",
"description": "The value you want to send"
},
"functionClass": {
"function_class": {
"name": "Function Class",
"description": "functionClass you want to send"
},
"functionInstance": {
"function_instance": {
"name": "Function Instance",
"description": "functionInstance you want to send"
},
Expand Down
12 changes: 6 additions & 6 deletions tests/test_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ async def test_service_valid_no_username(
service_data={
"entity_id": [entity_id],
"value": "off",
"functionClass": "power",
"functionInstance": "light-power",
"function_class": "power",
"function_instance": "light-power",
"account": account,
},
blocking=True,
Expand Down Expand Up @@ -104,8 +104,8 @@ async def test_service_valid_no_username(
service_data={
"entity_id": [entity_id],
"value": "off",
"functionClass": "power",
"functionInstance": "light-power",
"function_class": "power",
"function_instance": "light-power",
"account": account,
},
blocking=True,
Expand All @@ -118,8 +118,8 @@ async def test_service_valid_no_username(
service_data={
"entity_id": [entity_id],
"value": "off",
"functionClass": "power",
"functionInstance": "light-power",
"function_class": "power",
"function_instance": "light-power",
"account": account,
},
blocking=True,
Expand Down

0 comments on commit a464298

Please sign in to comment.