diff --git a/.devcontainer.json b/.devcontainer.json index 1da28c0..e21ec29 100644 --- a/.devcontainer.json +++ b/.devcontainer.json @@ -1,5 +1,5 @@ { - "name": "ludeeus/integration_blueprint", + "name": "jpawlowski/hass.tibber_prices", "image": "mcr.microsoft.com/devcontainers/python:3.13", "postCreateCommand": "scripts/setup", "forwardPorts": [ diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml index effbd36..64c4eca 100644 --- a/.github/ISSUE_TEMPLATE/bug.yml +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -21,7 +21,7 @@ body: required: true - label: This issue only contains 1 issue (if you have multiple issues, open one issue for each issue). required: true - - label: This issue is not a duplicate issue of any [previous issues](https://github.com/ludeeus/integration_blueprint/issues?q=is%3Aissue+label%3A%22Bug%22+).. + - label: This issue is not a duplicate issue of any [previous issues](https://github.com/jpawlowski/hass.tibber_prices/issues?q=is%3Aissue+label%3A%22Bug%22+).. required: true - type: textarea attributes: diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index d424df6..352adda 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -13,7 +13,7 @@ body: required: true - label: This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request). required: true - - label: This issue is not a duplicate feature request of [previous feature requests](https://github.com/ludeeus/integration_blueprint/issues?q=is%3Aissue+label%3A%22Feature+Request%22+). + - label: This issue is not a duplicate feature request of [previous feature requests](https://github.com/jpawlowski/hass.tibber_prices/issues?q=is%3Aissue+label%3A%22Feature+Request%22+). required: true - type: textarea diff --git a/LICENSE b/LICENSE index a1056f4..b7c6161 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2019 - 2025 Joakim Sørensen @ludeeus +Copyright (c) 2025 Julian Pawlowski @jpawlowski Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 8eaafa8..f6ae18e 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ File | Purpose | Documentation -- | -- | -- `.devcontainer.json` | Used for development/testing with Visual Studio Code. | [Documentation](https://code.visualstudio.com/docs/remote/containers) `.github/ISSUE_TEMPLATE/*.yml` | Templates for the issue tracker | [Documentation](https://help.github.com/en/github/building-a-strong-community/configuring-issue-templates-for-your-repository) -`custom_components/integration_blueprint/*` | Integration files, this is where everything happens. | [Documentation](https://developers.home-assistant.io/docs/creating_component_index) +`custom_components/tibber_prices/*` | Integration files, this is where everything happens. | [Documentation](https://developers.home-assistant.io/docs/creating_component_index) `CONTRIBUTING.md` | Guidelines on how to contribute. | [Documentation](https://help.github.com/en/github/building-a-strong-community/setting-guidelines-for-repository-contributors) `LICENSE` | The license file for the project. | [Documentation](https://help.github.com/en/github/creating-cloning-and-archiving-repositories/licensing-a-repository) `README.md` | The file you are reading now, should contain info about the integration, installation and configuration instructions. | [Documentation](https://help.github.com/en/github/writing-on-github/basic-writing-and-formatting-syntax) diff --git a/config/configuration.yaml b/config/configuration.yaml index ccc8410..75dcde3 100644 --- a/config/configuration.yaml +++ b/config/configuration.yaml @@ -9,4 +9,4 @@ homeassistant: logger: default: info logs: - custom_components.integration_blueprint: debug + custom_components.tibber_prices: debug diff --git a/custom_components/integration_blueprint/__init__.py b/custom_components/integration_blueprint/__init__.py index be346b3..2e7616a 100644 --- a/custom_components/integration_blueprint/__init__.py +++ b/custom_components/integration_blueprint/__init__.py @@ -1,8 +1,8 @@ """ -Custom integration to integrate integration_blueprint with Home Assistant. +Custom integration to integrate tibber_prices with Home Assistant. For more details about this integration, please refer to -https://github.com/ludeeus/integration_blueprint +https://github.com/jpawlowski/hass.tibber_prices """ from __future__ import annotations diff --git a/custom_components/integration_blueprint/binary_sensor.py b/custom_components/integration_blueprint/binary_sensor.py index 2491e7e..02c1f0a 100644 --- a/custom_components/integration_blueprint/binary_sensor.py +++ b/custom_components/integration_blueprint/binary_sensor.py @@ -1,4 +1,4 @@ -"""Binary sensor platform for integration_blueprint.""" +"""Binary sensor platform for tibber_prices.""" from __future__ import annotations @@ -21,8 +21,8 @@ if TYPE_CHECKING: ENTITY_DESCRIPTIONS = ( BinarySensorEntityDescription( - key="integration_blueprint", - name="Integration Blueprint Binary Sensor", + key="tibber_prices", + name="Tibber Prices Binary Sensor", device_class=BinarySensorDeviceClass.CONNECTIVITY, ), ) @@ -44,7 +44,7 @@ async def async_setup_entry( class IntegrationBlueprintBinarySensor(IntegrationBlueprintEntity, BinarySensorEntity): - """integration_blueprint binary_sensor class.""" + """tibber_prices binary_sensor class.""" def __init__( self, diff --git a/custom_components/integration_blueprint/const.py b/custom_components/integration_blueprint/const.py index ff45085..1995546 100644 --- a/custom_components/integration_blueprint/const.py +++ b/custom_components/integration_blueprint/const.py @@ -1,8 +1,8 @@ -"""Constants for integration_blueprint.""" +"""Constants for tibber_prices.""" from logging import Logger, getLogger LOGGER: Logger = getLogger(__package__) -DOMAIN = "integration_blueprint" +DOMAIN = "tibber_prices" ATTRIBUTION = "Data provided by http://jsonplaceholder.typicode.com/" diff --git a/custom_components/integration_blueprint/coordinator.py b/custom_components/integration_blueprint/coordinator.py index 0ba3d69..1f152c2 100644 --- a/custom_components/integration_blueprint/coordinator.py +++ b/custom_components/integration_blueprint/coordinator.py @@ -1,4 +1,4 @@ -"""DataUpdateCoordinator for integration_blueprint.""" +"""DataUpdateCoordinator for tibber_prices.""" from __future__ import annotations diff --git a/custom_components/integration_blueprint/data.py b/custom_components/integration_blueprint/data.py index cdeb1ea..6874ea0 100644 --- a/custom_components/integration_blueprint/data.py +++ b/custom_components/integration_blueprint/data.py @@ -1,4 +1,4 @@ -"""Custom types for integration_blueprint.""" +"""Custom types for tibber_prices.""" from __future__ import annotations diff --git a/custom_components/integration_blueprint/manifest.json b/custom_components/integration_blueprint/manifest.json index 9905e53..2844276 100644 --- a/custom_components/integration_blueprint/manifest.json +++ b/custom_components/integration_blueprint/manifest.json @@ -1,12 +1,12 @@ { - "domain": "integration_blueprint", - "name": "Integration blueprint", + "domain": "tibber_prices", + "name": "Tibber Price Information & Ratings", "codeowners": [ - "@ludeeus" + "@jpawlowski" ], "config_flow": true, - "documentation": "https://github.com/ludeeus/integration_blueprint", + "documentation": "https://github.com/jpawlowski/hass.tibber_prices", "iot_class": "cloud_polling", - "issue_tracker": "https://github.com/ludeeus/integration_blueprint/issues", + "issue_tracker": "https://github.com/jpawlowski/hass.tibber_prices/issues", "version": "0.1.0" } \ No newline at end of file diff --git a/custom_components/integration_blueprint/sensor.py b/custom_components/integration_blueprint/sensor.py index bd5f89b..17aaa86 100644 --- a/custom_components/integration_blueprint/sensor.py +++ b/custom_components/integration_blueprint/sensor.py @@ -1,4 +1,4 @@ -"""Sensor platform for integration_blueprint.""" +"""Sensor platform for tibber_prices.""" from __future__ import annotations @@ -17,7 +17,7 @@ if TYPE_CHECKING: ENTITY_DESCRIPTIONS = ( SensorEntityDescription( - key="integration_blueprint", + key="tibber_prices", name="Integration Sensor", icon="mdi:format-quote-close", ), @@ -40,7 +40,7 @@ async def async_setup_entry( class IntegrationBlueprintSensor(IntegrationBlueprintEntity, SensorEntity): - """integration_blueprint Sensor class.""" + """tibber_prices Sensor class.""" def __init__( self, diff --git a/custom_components/integration_blueprint/switch.py b/custom_components/integration_blueprint/switch.py index 7629220..1613960 100644 --- a/custom_components/integration_blueprint/switch.py +++ b/custom_components/integration_blueprint/switch.py @@ -1,4 +1,4 @@ -"""Switch platform for integration_blueprint.""" +"""Switch platform for tibber_prices.""" from __future__ import annotations @@ -17,7 +17,7 @@ if TYPE_CHECKING: ENTITY_DESCRIPTIONS = ( SwitchEntityDescription( - key="integration_blueprint", + key="tibber_prices", name="Integration Switch", icon="mdi:format-quote-close", ), @@ -40,7 +40,7 @@ async def async_setup_entry( class IntegrationBlueprintSwitch(IntegrationBlueprintEntity, SwitchEntity): - """integration_blueprint switch class.""" + """tibber_prices switch class.""" def __init__( self, diff --git a/custom_components/integration_blueprint/translations/en.json b/custom_components/integration_blueprint/translations/en.json index 4f1667d..2770473 100644 --- a/custom_components/integration_blueprint/translations/en.json +++ b/custom_components/integration_blueprint/translations/en.json @@ -2,7 +2,7 @@ "config": { "step": { "user": { - "description": "If you need help with the configuration have a look here: https://github.com/ludeeus/integration_blueprint", + "description": "If you need help with the configuration have a look here: https://github.com/jpawlowski/hass.tibber_prices", "data": { "username": "Username", "password": "Password" diff --git a/hacs.json b/hacs.json index a1e4e71..22ae3d6 100644 --- a/hacs.json +++ b/hacs.json @@ -1,5 +1,5 @@ { - "name": "Integration blueprint", - "homeassistant": "2025.2.4", + "name": "Tibber Price Information & Ratings", + "homeassistant": "2025.4.2", "hacs": "2.0.1" } \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index ef9cf1b..3f778f5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ colorlog==6.9.0 -homeassistant==2025.2.4 +homeassistant==2025.4.2 pip>=21.3.1 ruff==0.11.5 \ No newline at end of file diff --git a/scripts/develop b/scripts/develop index 89eda50..a42e449 100755 --- a/scripts/develop +++ b/scripts/develop @@ -11,7 +11,7 @@ if [[ ! -d "${PWD}/config" ]]; then fi # Set the path to custom_components -## This let's us have the structure we want /custom_components/integration_blueprint +## This let's us have the structure we want /custom_components/tibber_prices ## while at the same time have Home Assistant configuration inside /config ## without resulting to symlinks. export PYTHONPATH="${PYTHONPATH}:${PWD}/custom_components"