mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-29 21:03:40 +00:00
Rename component
This commit is contained in:
parent
131a4eb148
commit
dea7cfee43
18 changed files with 32 additions and 32 deletions
|
|
@ -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": [
|
||||
|
|
|
|||
2
.github/ISSUE_TEMPLATE/bug.yml
vendored
2
.github/ISSUE_TEMPLATE/bug.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
2
.github/ISSUE_TEMPLATE/feature_request.yml
vendored
2
.github/ISSUE_TEMPLATE/feature_request.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
2
LICENSE
2
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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -9,4 +9,4 @@ homeassistant:
|
|||
logger:
|
||||
default: info
|
||||
logs:
|
||||
custom_components.integration_blueprint: debug
|
||||
custom_components.tibber_prices: debug
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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/"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
"""DataUpdateCoordinator for integration_blueprint."""
|
||||
"""DataUpdateCoordinator for tibber_prices."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
"""Custom types for integration_blueprint."""
|
||||
"""Custom types for tibber_prices."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "Integration blueprint",
|
||||
"homeassistant": "2025.2.4",
|
||||
"name": "Tibber Price Information & Ratings",
|
||||
"homeassistant": "2025.4.2",
|
||||
"hacs": "2.0.1"
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
colorlog==6.9.0
|
||||
homeassistant==2025.2.4
|
||||
homeassistant==2025.4.2
|
||||
pip>=21.3.1
|
||||
ruff==0.11.5
|
||||
|
|
@ -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 <root>/custom_components/integration_blueprint
|
||||
## This let's us have the structure we want <root>/custom_components/tibber_prices
|
||||
## while at the same time have Home Assistant configuration inside <root>/config
|
||||
## without resulting to symlinks.
|
||||
export PYTHONPATH="${PYTHONPATH}:${PWD}/custom_components"
|
||||
|
|
|
|||
Loading…
Reference in a new issue