Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,4 @@ custom_components/opendisplay/*.jpg
custom_components/opendisplay/lastapinteraction.txt

tests/drawcustom/test_images/rename_me.png
.worktrees/
4 changes: 2 additions & 2 deletions custom_components/opendisplay/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from homeassistant.helpers import entity_registry as er, device_registry as dr, storage
from homeassistant.const import __version__ as HA_VERSION
from homeassistant.helpers.typing import ConfigType
from .ble import BLEDeviceMetadata
from .metadata import BLEDeviceMetadata
from .const import DOMAIN
from .coordinator import Hub
from .runtime_data import OpenDisplayConfigEntry, OpenDisplayBLERuntimeData
Expand Down Expand Up @@ -114,7 +114,7 @@ async def async_remove_invalid_ble_entities(
mac_address = entry.data.get("mac_address", "")

# Check power mode - remove battery sensors if not battery/solar powered
from .ble import BLEDeviceMetadata
from .metadata import BLEDeviceMetadata
metadata = BLEDeviceMetadata(device_metadata)
if metadata.power_mode not in (1, 3): # Not battery (1) or solar (3)
for entity in er.async_entries_for_config_entry(entity_registry, entry.entry_id):
Expand Down
2 changes: 1 addition & 1 deletion custom_components/opendisplay/ble/image_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from .exceptions import BLEError
from .image_processing import process_image_for_device
from .metadata import BLEDeviceMetadata
from ..metadata import BLEDeviceMetadata

_LOGGER = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion custom_components/opendisplay/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from homeassistant.core import callback
from homeassistant.helpers.dispatcher import async_dispatcher_connect
from homeassistant.helpers.entity import DeviceInfo, Entity
from .ble import BLEDeviceMetadata
from .metadata import BLEDeviceMetadata

from .const import DOMAIN, OPENDISPLAY_CONFIG_URL, ATC_CONFIG_URL
from .tag_types import get_hw_string, get_hw_dimensions
Expand Down
2 changes: 1 addition & 1 deletion custom_components/opendisplay/imagegen/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ async def get_ble_tag_info(self, hass: HomeAssistant, entity_id: str) -> tuple[i
translation_placeholders={"entity_id": entity_id}
)
# Wrap metadata for clean access
from ..ble import BLEDeviceMetadata
from ..metadata import BLEDeviceMetadata
metadata = BLEDeviceMetadata(device_metadata)

# Extract device capabilities
Expand Down
1 change: 1 addition & 0 deletions custom_components/opendisplay/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
}
},
"requirements": [
"py-opendisplay==7.3.0",
"qrcode[pil]==7.4.2",
"requests_toolbelt==1.0.0",
"websocket-client==1.7.0",
Expand Down
Loading