|
24 | 24 |
|
25 | 25 | from .actions import OpenUrl, Submit
|
26 | 26 | from .adaptive_card_component import AdaptiveCardComponent
|
27 |
| -from .options import BlockElementHeight, ImageSize, ImageStyle, Spacing |
| 27 | +from .options import BlockElementHeight, ImageSize, ImageStyle, Spacing, HorizontalAlignment |
28 | 28 | from .utils import check_type
|
29 | 29 |
|
30 | 30 |
|
@@ -126,7 +126,7 @@ def __init__(self, url, altText=None, backgroundColor=None, height=None,
|
126 | 126 | check_type(altText, str, optional=True)
|
127 | 127 | check_type(backgroundColor, str, optional=True)
|
128 | 128 | check_type(height, (str, BlockElementHeight), optional=True)
|
129 |
| - check_type(horizontalAlignment, horizontalAlignment, optional=True) |
| 129 | + check_type(horizontalAlignment, (str, HorizontalAlignment), optional=True) |
130 | 130 | check_type(selectAction, (OpenUrl, Submit), optional=True)
|
131 | 131 | check_type(size, ImageSize, optional=True)
|
132 | 132 | check_type(style, ImageStyle, optional=True)
|
|
0 commit comments