diff --git a/.github/workflows/hassfest.yaml b/.github/workflows/hassfest.yaml index 0a1bd9c..2f75423 100644 --- a/.github/workflows/hassfest.yaml +++ b/.github/workflows/hassfest.yaml @@ -4,11 +4,11 @@ on: push: pull_request: schedule: - - cron: '0 0 * * *' + - cron: '0 0 * * *' jobs: validate: runs-on: "ubuntu-latest" steps: - - uses: "actions/checkout@v4" - - uses: "home-assistant/actions/hassfest@master" \ No newline at end of file + - uses: "actions/checkout@v4" + - uses: "home-assistant/actions/hassfest@master" \ No newline at end of file diff --git a/README.md b/README.md index cabca49..b64b304 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,11 @@ [![hacs_badge](https://img.shields.io/badge/HACS-Custom-41BDF5.svg?style=for-the-badge)](https://github.com/hacs/integration) [![GitHub release (latest by date)](https://img.shields.io/github/v/release/M4TH1EU/HA-EasyComputerManage?style=for-the-badge)](./releases/) -![img.png](.images/header.png) +![img.png](.images/header.png) -Easy Computer Manager is a custom integration for Home Assistant that allows you to remotely manage various aspects of your computer, such as sending Wake-On-LAN (WoL) packets, restarting the computer between different operating systems (if dual-boot), adjusting audio configurations, changing monitor settings, and more. +Easy Computer Manager is a custom integration for Home Assistant that allows you to remotely manage various aspects of +your computer, such as sending Wake-On-LAN (WoL) packets, restarting the computer between different operating systems ( +if dual-boot), adjusting audio configurations, changing monitor settings, and more. ## Features @@ -32,7 +34,8 @@ Easy Computer Manager is a custom integration for Home Assistant that allows you 1. Download the latest release from the [GitHub repository](https://github.com/M4TH1EU/HA-EasyComputerManager/). 2. Extract the downloaded ZIP file. -3. Copy the "custom_components/easy_computer_manager" directory to the "config/custom_components/" directory in your Home Assistant instance. +3. Copy the "custom_components/easy_computer_manager" directory to the "config/custom_components/" directory in your + Home Assistant instance. ## Configuration @@ -40,19 +43,24 @@ Easy Computer Manager is a custom integration for Home Assistant that allows you 2. Select "Integrations." 3. Click the "+" button to add a new integration. 4. Search for "Easy Computer Manager" and select it from the list. -5. Follow the on-screen instructions to configure the integration, providing details such as the IP address, username, and password for the computer you want to manage. +5. Follow the on-screen instructions to configure the integration, providing details such as the IP address, username, + and password for the computer you want to manage. 6. Once configured, click "Finish" to add the computer to Home Assistant. ## Usage -After adding your computer to Home Assistant, you can use the provided services to manage it remotely. Explore the available services in the Home Assistant "Services" tab or use automations to integrate Easy Computer Manager into your smart home setup. +After adding your computer to Home Assistant, you can use the provided services to manage it remotely. Explore the +available services in the Home Assistant "Services" tab or use automations to integrate Easy Computer Manager into your +smart home setup. ## Troubleshooting -If you encounter any issues during installation or configuration, refer to the troubleshooting section in the [Wiki](./wiki) or seek assistance from the Home Assistant community. +If you encounter any issues during installation or configuration, refer to the troubleshooting section in +the [Wiki](./wiki) or seek assistance from the Home Assistant community. ## Contributions -Contributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request on the [GitHub repository](https://github.com/M4TH1EU/HA-EasyComputerManager). +Contributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a +pull request on the [GitHub repository](https://github.com/M4TH1EU/HA-EasyComputerManager). Happy automating with Easy Computer Manager! \ No newline at end of file diff --git a/custom_components/easy_computer_manager/__init__.py b/custom_components/easy_computer_manager/__init__.py index 9daf77c..99bdf82 100644 --- a/custom_components/easy_computer_manager/__init__.py +++ b/custom_components/easy_computer_manager/__init__.py @@ -3,6 +3,7 @@ # Some snippets of code are from the official wake_on_lan integration (inspiration for this custom component) from __future__ import annotations + import logging from functools import partial