Skip to content

Commit

Permalink
Try to fix device actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
b-rowan committed Jun 21, 2024
1 parent 89eb1b0 commit b7132b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/miner/device_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
ACTION_SCHEMA = cv.DEVICE_ACTION_BASE_SCHEMA.extend(
{
vol.Required(CONF_TYPE): vol.In(ACTION_TYPES),
vol.Required(CONF_DOMAIN): DOMAIN,
vol.Required(CONF_ENTITY_ID): cv.entity_domain(DOMAIN),
}
)
Expand Down Expand Up @@ -58,7 +59,7 @@ async def async_get_actions(
)
except AttributeError:
_LOGGER.error(
"Failed to run device command for miner: Unable to access entry data."
"Failed to add device command for miner: Unable to access entry data."
)

return actions
Expand Down

0 comments on commit b7132b5

Please sign in to comment.