Skip to content

Commit

Permalink
New attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
dala318 committed Sep 4, 2024
1 parent 3f5874f commit 0de5b4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions custom_components/nordpool_planner/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import datetime as dt
import logging

from config.custom_components import nordpool
from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry
from homeassistant.const import STATE_UNAVAILABLE, STATE_UNKNOWN, Platform
from homeassistant.core import HomeAssistant
Expand Down Expand Up @@ -248,7 +247,6 @@ def get_device_info(self) -> DeviceInfo:
name=self.name,
manufacturer="Nordpool",
entry_type=DeviceEntryType.SERVICE,
via_device=(nordpool.DOMAIN, self._np_entity.unique_id),
)

def input_changed(self, value):
Expand Down
6 changes: 3 additions & 3 deletions tests/test_config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

from unittest import mock

from config.custom_components.nordpool_planner.const import *
from custom_components.nordpool_planner import config_flow
import pytest
from pytest_homeassistant_custom_component.async_mock import patch

# from pytest_homeassistant_custom_component.async_mock import patch
import voluptuous as vol

from custom_components.nordpool_planner.const import *
from homeassistant import config_entries
from homeassistant.helpers import selector


NP_ENTITY_NAME = "sensor.nordpool_ent"

SCHEMA_COPY = vol.Schema(
Expand Down

0 comments on commit 0de5b4a

Please sign in to comment.