Skip to content

Commit

Permalink
Add ressources
Browse files Browse the repository at this point in the history
  • Loading branch information
jdejaegh committed Dec 28, 2023
1 parent 36fffbf commit b6e3482
Showing 4 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/irm_kmi/coordinator.py
Original file line number Diff line number Diff line change
@@ -135,7 +135,7 @@ async def merge_frames_from_api(self,
background = Image.open("custom_components/irm_kmi/resources/nl.png").convert('RGBA')
fill_color = (0, 0, 0)
else:
background = Image.open("custom_components/irm_kmi/resources/be_bw.png").convert('RGBA')
background = Image.open("custom_components/irm_kmi/resources/be_black.png").convert('RGBA')
fill_color = (255, 255, 255)

most_recent_frame = None
Binary file added custom_components/irm_kmi/resources/be_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tests/test_coordinator.py
Original file line number Diff line number Diff line change
@@ -153,7 +153,7 @@ async def test_get_image_be(

# Construct the expected image for the most recent one
tz = pytz.timezone(hass.config.time_zone)
background = Image.open("custom_components/irm_kmi/resources/be_bw.png").convert('RGBA')
background = Image.open("custom_components/irm_kmi/resources/be_black.png").convert('RGBA')
layer = Image.open("tests/fixtures/clouds_be.png").convert('RGBA')
localisation = Image.open("tests/fixtures/loc_layer_be_n.png").convert('RGBA')
temp = Image.alpha_composite(background, layer)

0 comments on commit b6e3482

Please sign in to comment.