-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Add calendar to Workday #40420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: next
Are you sure you want to change the base?
Add calendar to Workday #40420
Conversation
✅ Deploy Preview for home-assistant-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds calendar functionality to the Workday integration documentation. The change reflects a new feature that provides a calendar entity alongside the existing binary sensor to show upcoming workdays.
Key changes:
- Updates the integration metadata to include Calendar category and platform
- Modifies the description to be more generic since the integration now provides multiple entity types
- Adds documentation for the new calendar entity functionality
- diagnostics | ||
ha_integration_type: integration | ||
--- | ||
|
||
The `workday` binary sensor indicates whether the current day is a workday or not. | ||
The `workday` {% term integration %} indicates whether the current day is a workday or not. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line should be written in flowing text style. Consider rewording to make it more natural and engaging, such as: 'The workday integration helps you determine whether the current day is a workday or not.'
Copilot uses AI. Check for mistakes.
|
||
It allows specifying which days of the week will count as workdays and also uses the Python module [holidays](https://pypi.org/project/holidays/) to incorporate information about region-specific public holidays. | ||
|
||
This can be used to make daily automations that act differently on workdays than non-workdays. For example, you could make your bedroom lights turn on (gently) at 7 in the morning if it is a workday but wait until 11 if it is a non-working day. | ||
|
||
The `workday` {% term integration %} also provides a `calendar` entity that may be used to see upcoming workdays. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sentence feels awkward and formal. Consider rewriting in a more natural, flowing style: 'You can also use the calendar entity to view your upcoming workdays.' This makes it more personal and easier to read.
Copilot uses AI. Check for mistakes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @gjohansson-ST 👍
Proposed change
Adds
calendar
entity toworkday
Type of change
current
branch).current
branch).next
branch).next
branch).Additional information
Checklist
current
branch.next
branch.