I'm confused on how to apply the law of total probability when the summation is $\sum_{0}^{1}$ i.e. from $0$ to $1$, including all possible decimal numbers in between, rather than a summation of $\sum_{a}^{b}$ where $a$ and $b$ are integers. Is the following the correct approach (using an integral from $0$ to $1$)?
If I apply the law of total probability to $P(Y=1)$, does it equal:
$ \int_{0}^{1} P(Y=1|X=x)P(X=x)dx$
where $Y \in \{0,1\}$ and $x \in [0,1]$