Skip to content

Commit

Permalink
Initial working version
Browse files Browse the repository at this point in the history
  • Loading branch information
FaserF committed Aug 29, 2024
1 parent ed45c23 commit 8b18776
Show file tree
Hide file tree
Showing 18 changed files with 273 additions and 163 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -56,7 +56,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -69,4 +69,4 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
12 changes: 12 additions & 0 deletions .github/workflows/hassfest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Validate with hassfest

on:
push:
pull_request:

jobs:
validate:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
- uses: home-assistant/actions/hassfest@master
2 changes: 1 addition & 1 deletion .github/workflows/validate-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: "ubuntu-latest"
name: Validate
steps:
- uses: "actions/checkout@v3"
- uses: "actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332" # v4

- name: HACS validation
uses: "hacs/action@main"
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
[![hacs_badge](https://img.shields.io/badge/HACS-Default-41BDF5.svg?style=for-the-badge)](https://github.com/hacs/integration)
# Chefkoch Homeassistant Sensor
The `chefkoch` sensor will give you the daily top reciepe from chefkoch.

PLEASE NOTE: NOT WORKING YET - work in progress!
The `chefkoch_ha` sensor will give you random reciepes from chefkoch.

## Installation
### 1. Using HACS (recommended way)
Expand Down Expand Up @@ -35,10 +33,13 @@ To enable debugging enter the following in your configuration.yaml
```yaml
logger:
logs:
custom_components.chefkoch: debug
custom_components.chefkoch_ha: debug
```
You can then find the log in the HA settings -> System -> Logs -> Enter "chefkoch" in the search bar -> "Load full logs"
## Why is it called chefkoch_ha and not chefkoch?
Due to the problem, that the corresponding python module is also called "chefkoch", this integration will fail to load some dependencies, when both the integration and the python module are called the same.
## Thanks to
Huge thanks to [@THDMoritzEnderle](https://github.com/THDMoritzEnderle/chefkoch) for the chefkoch python library that this integration is using.
1 change: 0 additions & 1 deletion custom_components/chefkoch/.gitignore

This file was deleted.

80 changes: 0 additions & 80 deletions custom_components/chefkoch/__init__.py

This file was deleted.

36 changes: 0 additions & 36 deletions custom_components/chefkoch/config_flow.py

This file was deleted.

5 changes: 0 additions & 5 deletions custom_components/chefkoch/const.py

This file was deleted.

31 changes: 0 additions & 31 deletions custom_components/chefkoch/sensor.py

This file was deleted.

1 change: 1 addition & 0 deletions custom_components/chefkoch_ha/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
custom_components/chefkoch_ha/__pycache__/
Loading

0 comments on commit 8b18776

Please sign in to comment.