"""The tests for the everlights component.""" from homeassistant.components.light import everlights def test_color_rgb_to_int(): """Test RGB to integer conversion.""" assert everlights.color_rgb_to_int(0x00, 0x00, 0x00) == 0x000000 assert everlights.color_rgb_to_int(0xff, 0xff, 0xff) == 0xffffff assert everlights.color_rgb_to_int(0x12, 0x34, 0x56) == 0x123456 def test_int_to_rgb(): """Test integer to RGB conversion.""" assert everlights.color_int_to_rgb(0x000000) == (0x00, 0x00, 0x00) assert everlights.color_int_to_rgb(0xffffff) == (0xff, 0xff, 0xff) assert everlights.color_int_to_rgb(0x123456) == (0x12, 0x34, 0x56)